mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
fix error return when there's no write access to naming attributes (ITS#3450)
This commit is contained in:
parent
4b8e57e11f
commit
889b20e358
1 changed files with 3 additions and 1 deletions
|
|
@ -440,6 +440,7 @@ slap_modrdn2mods(
|
|||
"slap_modrdn2modlist: access to attr \"%s\" "
|
||||
"(new) not allowed\n",
|
||||
new_rdn[ a_cnt ]->la_attr.bv_val, 0, 0 );
|
||||
rs->sr_text = "access to naming attributes (new) not allowed";
|
||||
rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -493,6 +494,7 @@ slap_modrdn2mods(
|
|||
"to attr \"%s\" (old) not allowed\n",
|
||||
old_rdn[ d_cnt ]->la_attr.bv_val,
|
||||
0, 0 );
|
||||
rs->sr_text = "access to naming attributes (old) not allowed";
|
||||
rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -524,7 +526,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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue