Skip to content
Snippets Groups Projects
Commit 444c4982 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix result codes

parent 9eca1bd7
Branches
Tags
No related merge requests found
......@@ -113,13 +113,21 @@ backsql_bind( Operation *op, SlapReply *rs )
e = &user_entry;
if ( ! access_allowed( op, e, password, NULL, ACL_AUTH, NULL ) ) {
#if 1
rs->sr_err = LDAP_INVALID_CREDENTIALS;
#else
rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
#endif
goto error_return;
}
a = attr_find( e->e_attrs, password );
if ( a == NULL ) {
#if 1
rs->sr_err = LDAP_INVALID_CREDENTIALS;
#else
rs->sr_err = LDAP_INAPPROPRIATE_AUTH;
#endif
goto error_return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment