skip_get_dn
skip_get_dn(const char *dn, const char *end);
s = skip_get_dn(begin_token, end_s);
valid = skip_get_dn(s, end) == end;