mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3056 partial fix - from a slurpd perspective, the updatedn
should be allowed to the entry at the naming prefix (database suffix).
This commit is contained in:
parent
b844e7fe42
commit
158e5727b4
@ -298,7 +298,7 @@ retry: /* transaction retry */
|
|||||||
* no parent!
|
* no parent!
|
||||||
* if not attempting to add entry at suffix or with parent ""
|
* if not attempting to add entry at suffix or with parent ""
|
||||||
*/
|
*/
|
||||||
if (( !be_isroot( op ) || pdn.bv_len > 0 )
|
if ((( !be_isroot( op ) && !be_isupdate(op)) || pdn.bv_len > 0 )
|
||||||
&& !is_entry_glue( op->oq_add.rs_e ))
|
&& !is_entry_glue( op->oq_add.rs_e ))
|
||||||
{
|
{
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
|
@ -247,8 +247,8 @@ ldbm_back_add(
|
|||||||
} else {
|
} else {
|
||||||
assert( pdn.bv_val == NULL || *pdn.bv_val == '\0' );
|
assert( pdn.bv_val == NULL || *pdn.bv_val == '\0' );
|
||||||
|
|
||||||
if ( !be_isroot( op )
|
if (( !be_isroot( op ) && !be_isupdate( op )) &&
|
||||||
&& !is_entry_glue( op->oq_add.rs_e ))
|
!is_entry_glue( op->oq_add.rs_e ))
|
||||||
{
|
{
|
||||||
ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);
|
ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user