Commit cb19db7e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Cleanup OPERATIONS errors

parent 0f17b657
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment