mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Allow "" DNs
This commit is contained in:
parent
70bb39ccbc
commit
5cf9fad3e3
1 changed files with 6 additions and 4 deletions
|
|
@ -104,18 +104,20 @@ str2entry( char *s )
|
|||
if ( e->e_dn != NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"str2entry: entry %ld has multiple dns \"%s\" and \"%s\" (second ignored)\n",
|
||||
e->e_id, e->e_dn, value );
|
||||
e->e_id, e->e_dn,
|
||||
value != NULL ? value : NULL );
|
||||
continue;
|
||||
}
|
||||
e->e_dn = ch_strdup( value );
|
||||
e->e_dn = ch_strdup( value != NULL ? value : "" );
|
||||
|
||||
if ( e->e_ndn != NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"str2entry: entry %ld already has a normalized dn \"%s\" for \"%s\" (first ignored)\n",
|
||||
e->e_id, e->e_ndn, value );
|
||||
e->e_id, e->e_ndn,
|
||||
value != NULL ? value : NULL );
|
||||
free( e->e_ndn );
|
||||
}
|
||||
e->e_ndn = ch_strdup( value );
|
||||
e->e_ndn = ch_strdup( e->e_dn );
|
||||
(void) dn_normalize_case( e->e_ndn );
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue