Debug( LDAP_DEBUG_TRACE, "backsql_modrdn(): "
"newSuperior is equal to entry being moved "
"- aborting\n", 0, 0, 0 );
- send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
+ send_ldap_result( conn, op, LDAP_OTHER,
NULL, "newSuperior is equal to old DN",
NULL, NULL );
goto modrdn_return;
}
rc = LDAP_SUCCESS;
} else {
- rc = LDAP_OPERATIONS_ERROR;
+ rc = LDAP_OTHER;
}
} else {
rc = LDAP_REFERRAL;
* of an entry in the backend directly
* Return values : LDAP_SUCCESS
* LDAP_PARAM_ERROR
- * LDAP_OPERATIONS_ERROR
* LDAP_NO_MEMORY
* LDAP_OTHER
* LDAP_UNWILLING_TO_PERFORM
rc = LDAP_SUCCESS;
} else {
- rc = LDAP_OPERATIONS_ERROR;
+ rc = LDAP_OTHER;
}
} else {
* Return values : LDAP_SUCCESS
* LDAP_PARAM_ERROR
* LDAP_NO_MEMORY
- * LDAP_OPERATIONS_ERROR
* LDAP_OTHER
* LDAP_UNWILLING_TO_PERFORM
*/
}
rc = LDAP_SUCCESS;
} else {
- rc = LDAP_OPERATIONS_ERROR;
+ rc = LDAP_OTHER;
}
} else {
rc = LDAP_REFERRAL;
if ( rc == 0 ) {
rc = LDAP_SUCCESS;
} else {
- rc = LDAP_OPERATIONS_ERROR;
+ rc = LDAP_OTHER;
}
} else {
rc = LDAP_UNWILLING_TO_PERFORM;
}
if ( vals[0] == NULL ) {
- /* SLAPI doco says LDAP_OPERATIONS_ERROR */
- return attr_delete( &e->e_attrs, mod.sm_desc ) ? LDAP_OPERATIONS_ERROR : LDAP_SUCCESS;
+ /* SLAPI doco says LDAP_OPERATIONS_ERROR but LDAP_OTHER is better */
+ return attr_delete( &e->e_attrs, mod.sm_desc ) ? LDAP_OTHER : LDAP_SUCCESS;
}
rc = bvptr2obj( vals, &mod.sm_bvalues );