From: Ondřej Kuzník Date: Thu, 13 Jan 2022 09:45:21 +0000 (+0000) Subject: ITS#7080 cn=config postread support for modrdn when back-ldif not used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c110d16d0eb0e7b9f46f4fc5b8ff9e5a12bc6a;p=thirdparty%2Fopenldap.git ITS#7080 cn=config postread support for modrdn when back-ldif not used --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 49a6b3ff14..693cfa3206 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -6615,6 +6615,20 @@ config_back_modrdn( Operation *op, SlapReply *rs ) op->oq_modrdn = modr; } + if ( rs->sr_err == LDAP_SUCCESS && !cfb->cb_use_ldif && op->o_postread ) { + if ( postread_ctrl == NULL ) { + postread_ctrl = &ctrls[num_ctrls++]; + ctrls[num_ctrls] = NULL; + } + if ( slap_read_controls( op, rs, ce->ce_entry, + &slap_post_read_bv, postread_ctrl ) ) + { + Debug( LDAP_DEBUG_ANY, "config_back_modrdn: " + "post-read failed \"%s\"\n", + ce->ce_entry->e_name.bv_val ); + } + } + if ( dopause ) slap_unpause_server(); out: