From: Pierangelo Masarati Date: Wed, 29 Dec 2004 13:46:23 +0000 (+0000) Subject: import fix from HEAD (error return when there's no write access to naming attributes... X-Git-Tag: OPENLDAP_REL_ENG_2_2_20~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e719c15dc98a0e020cbc10653aa6b99dca8f9393;p=openldap import fix from HEAD (error return when there's no write access to naming attributes, ITS#3450) --- diff --git a/CHANGES b/CHANGES index 4f419d915e..06dc8f0495 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ OpenLDAP 2.2.20 Engineering Fixed slapd sl_realloc memory overrun (ITS#3420, #3404, #3296) Fixed slapd syncrepl bugs (ITS#3423, #3425, #3443, #3448) Fixed slapd bad tag handling + Fixed slapd error return for modrdn invalid access (ITS#3450) Fixed back-bdb locks in backend_group (ITS#3263, #3365) Fixed back-bdb/back-hdb listing of permissive control (ITS#3453) Fixed back-ldap failed connection retry (ITS#3217) diff --git a/servers/slapd/modrdn.c b/servers/slapd/modrdn.c index 938a7734cb..8369b3c4a3 100644 --- a/servers/slapd/modrdn.c +++ b/servers/slapd/modrdn.c @@ -519,6 +519,7 @@ slap_modrdn2mods( "(new) not allowed\n", new_rdn[ a_cnt ]->la_attr.bv_val, 0, 0 ); #endif + rs->sr_text = "access to naming attributes (new) not allowed"; rs->sr_err = LDAP_INSUFFICIENT_ACCESS; goto done; } @@ -588,6 +589,7 @@ slap_modrdn2mods( old_rdn[ d_cnt ]->la_attr.bv_val, 0, 0 ); #endif + rs->sr_text = "access to naming attributes (old) not allowed"; rs->sr_err = LDAP_INSUFFICIENT_ACCESS; goto done; } @@ -619,7 +621,7 @@ slap_modrdn2mods( done: - if ( !repl_user ) { + if ( rs->sr_err == LDAP_SUCCESS && !repl_user ) { char textbuf[ SLAP_TEXT_BUFLEN ]; size_t textlen = sizeof textbuf;