mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
Cleanup OPERATIONS errors
This commit is contained in:
parent
0f17b657bd
commit
cb19db7ecd
@ -43,7 +43,7 @@ ldbm_back_add(
|
||||
/* if (rc) something bad happened to ldbm cache */
|
||||
ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);
|
||||
send_ldap_result( conn, op,
|
||||
rc ? LDAP_OPERATIONS_ERROR : LDAP_ALREADY_EXISTS,
|
||||
rc ? LDAP_OTHER : LDAP_ALREADY_EXISTS,
|
||||
NULL, NULL, NULL, NULL );
|
||||
return( -1 );
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ ldbm_back_modrdn(
|
||||
Debug( LDAP_DEBUG_TRACE, "entry (%s) is referral\n",
|
||||
np->e_dn, 0, 0 );
|
||||
|
||||
send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
|
||||
send_ldap_result( conn, op, LDAP_OTHER,
|
||||
NULL, "newSuperior is a referral", NULL, NULL );
|
||||
|
||||
goto return_results;
|
||||
@ -359,7 +359,7 @@ ldbm_back_modrdn(
|
||||
if ( ( rc_id = dn2id ( be, new_ndn, &id ) ) || id != NOID ) {
|
||||
/* if (rc_id) something bad happened to ldbm cache */
|
||||
send_ldap_result( conn, op,
|
||||
rc_id ? LDAP_OPERATIONS_ERROR : LDAP_ALREADY_EXISTS,
|
||||
rc_id ? LDAP_OTHER : LDAP_ALREADY_EXISTS,
|
||||
NULL, NULL, NULL, NULL );
|
||||
goto return_results;
|
||||
}
|
||||
@ -377,7 +377,7 @@ ldbm_back_modrdn(
|
||||
"ldbm_back_modrdn: can't figure out type(s)/value(s) of newrdn\n",
|
||||
0, 0, 0 );
|
||||
|
||||
send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
|
||||
send_ldap_result( conn, op, LDAP_INVALID_DN,
|
||||
NULL, "unable to parse type(s)/value(s) used in RDN", NULL, NULL );
|
||||
goto return_results;
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ ldbm_back_exop_passwd(
|
||||
|
||||
if( dn == NULL || dn[0] == '\0' ) {
|
||||
*text = "No password is associated with the Root DSE";
|
||||
rc = LDAP_OPERATIONS_ERROR;
|
||||
rc = LDAP_UNWILLING_TO_PERFORM;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user