int rc;
assert( rdn );
- assert( types );
assert( values );
rc = ldap_str2rdn( rdn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP );
assert( ava->la_attr );
assert( ava->la_value );
- charray_add_n( types, ava->la_attr->bv_val,
- ava->la_attr->bv_len );
+ if ( types ) {
+ charray_add_n( types, ava->la_attr->bv_val,
+ ava->la_attr->bv_len );
+ }
charray_add_n( values, ava->la_value->bv_val,
ava->la_value->bv_len );
}
LDAP_SLAPD_F (int) dnIsSuffix LDAP_P((
const struct berval *dn, const struct berval *suffix ));
+LDAP_SLAPD_F (int) dnExtractRdn LDAP_P((
+ const char *dn, struct berval **rdn ));
+
LDAP_SLAPD_F (int) rdnValidate LDAP_P(( struct berval * rdn ));
#define SLAP_DN_MIGRATION