mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
only add opattrs if not shadow; use helper to extract rdn
This commit is contained in:
parent
1249fa93d5
commit
a1a68333dc
1 changed files with 3 additions and 7 deletions
|
|
@ -51,6 +51,7 @@ bdb_add(Operation *op, SlapReply *rs )
|
|||
|
||||
ctrls[num_ctrls] = 0;
|
||||
|
||||
if ( !SLAP_SHADOW( op->o_bd ))
|
||||
slap_add_opattrs( op, &rs->sr_text, textbuf, textlen, 1 );
|
||||
|
||||
/* check entry's schema */
|
||||
|
|
@ -386,12 +387,7 @@ retry: /* transaction retry */
|
|||
struct berval nrdn;
|
||||
Entry *e = entry_dup( op->ora_e );
|
||||
|
||||
if (pdn.bv_len) {
|
||||
nrdn.bv_val = e->e_nname.bv_val;
|
||||
nrdn.bv_len = pdn.bv_val - op->ora_e->e_nname.bv_val - 1;
|
||||
} else {
|
||||
nrdn = e->e_nname;
|
||||
}
|
||||
dnRdn( &e->e_nname, &nrdn );
|
||||
|
||||
bdb_cache_add( bdb, ei, e, &nrdn, locker );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue