mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 00:32:54 -05:00
Fix result codes
This commit is contained in:
parent
9eca1bd75e
commit
444c49827c
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue