mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix add to topless root.
This commit is contained in:
parent
26437c46b0
commit
aec2f1f17e
2 changed files with 4 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ bdb2i_back_add_internal(
|
|||
|
||||
pdn = dn_parent( be, e->e_ndn );
|
||||
|
||||
if( pdn != NULL && *pdn != '\0' && !be_issuffix(be, "") ) {
|
||||
if( pdn != NULL && *pdn != '\0' ) {
|
||||
Entry *matched = NULL;
|
||||
|
||||
assert( *pdn != '\0' );
|
||||
|
|
@ -155,7 +155,7 @@ bdb2i_back_add_internal(
|
|||
}
|
||||
|
||||
/* no parent, must be adding entry to root */
|
||||
if ( ! be_isroot( be, op->o_ndn ) ) {
|
||||
if ( !be_isroot( be, op->o_ndn ) && !be_issuffix(be, "") ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "%s add denied\n",
|
||||
pdn == NULL ? "suffix" : "entry at root",
|
||||
0, 0 );
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ ldbm_back_add(
|
|||
|
||||
pdn = dn_parent( be, e->e_ndn );
|
||||
|
||||
if( pdn != NULL && *pdn != '\0' && !be_issuffix(be, "") ) {
|
||||
if( pdn != NULL && *pdn != '\0' ) {
|
||||
Entry *matched = NULL;
|
||||
|
||||
assert( *pdn != '\0' );
|
||||
|
|
@ -167,7 +167,7 @@ ldbm_back_add(
|
|||
}
|
||||
|
||||
/* no parent, must be adding entry to root */
|
||||
if ( ! be_isroot( be, op->o_ndn ) ) {
|
||||
if ( !be_isroot( be, op->o_ndn ) && !be_issuffix( be, "" ) ) {
|
||||
ldap_pvt_thread_mutex_unlock(&li->li_add_mutex);
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "%s add denied\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue