mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix typo; try to delete dn2id in case of late failure
This commit is contained in:
parent
d8cb33ebe8
commit
419a5ae8c9
@ -587,7 +587,7 @@ ldbm_back_modrdn(
|
|||||||
goto return_results;
|
goto return_results;
|
||||||
}
|
}
|
||||||
|
|
||||||
val.bv_val = old_rdn_vals[a_cnt];
|
val.bv_val = old_rdn_vals[d_cnt];
|
||||||
val.bv_len = strlen( val.bv_val );
|
val.bv_len = strlen( val.bv_val );
|
||||||
if ( ! access_allowed( be, conn, op, p,
|
if ( ! access_allowed( be, conn, op, p,
|
||||||
mod_tmp->sml_desc, &val, ACL_WRITE ) ) {
|
mod_tmp->sml_desc, &val, ACL_WRITE ) ) {
|
||||||
@ -595,12 +595,12 @@ ldbm_back_modrdn(
|
|||||||
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
||||||
"ldbm_back_modrdn: access "
|
"ldbm_back_modrdn: access "
|
||||||
"not allowed to attr \"%s\"\n",
|
"not allowed to attr \"%s\"\n",
|
||||||
old_rdn_types[a_cnt] ));
|
old_rdn_types[d_cnt] ));
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"ldbm_back_modrdn: access not allowed "
|
"ldbm_back_modrdn: access not allowed "
|
||||||
"to attr \"%s\"\n%s%s",
|
"to attr \"%s\"\n%s%s",
|
||||||
old_rdn_types[a_cnt], "", "" );
|
old_rdn_types[d_cnt], "", "" );
|
||||||
#endif
|
#endif
|
||||||
send_ldap_result( conn, op,
|
send_ldap_result( conn, op,
|
||||||
LDAP_INSUFFICIENT_ACCESS,
|
LDAP_INSUFFICIENT_ACCESS,
|
||||||
@ -673,6 +673,12 @@ ldbm_back_modrdn(
|
|||||||
NULL, text, NULL, NULL );
|
NULL, text, NULL, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* here we may try to delete the newly added dn */
|
||||||
|
if ( dn2id_delete( be, e->e_ndn, e->e_id ) != 0 ) {
|
||||||
|
/* we already are in trouble ... */
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
goto return_results;
|
goto return_results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user