From: Kurt Zeilenga Date: Sat, 11 Sep 2004 20:01:03 +0000 (+0000) Subject: Fix result codes X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~538 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=444c49827c6b15d980dff41647b65315eb30e740;p=openldap Fix result codes --- diff --git a/servers/slapd/back-sql/bind.c b/servers/slapd/back-sql/bind.c index a871cdc71d..2f8d31c2c0 100644 --- a/servers/slapd/back-sql/bind.c +++ b/servers/slapd/back-sql/bind.c @@ -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; }