Skip to content
Snippets Groups Projects
Commit 7aac82d3 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3616 allow adding entry with zero-length DN if the suffix is zero length

parent 335e8a8b
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,8 @@ slapadd( int argc, char **argv )
}
/* make sure the DN is not empty */
if( !e->e_nname.bv_len ) {
if( BER_BVISEMPTY( &e->e_nname ) &&
!BER_BVISEMPTY( be->be_nsuffix )) {
fprintf( stderr, "%s: empty dn=\"%s\" (line=%d)\n",
progname, e->e_dn, lineno );
rc = EXIT_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment