From 444c49827c6b15d980dff41647b65315eb30e740 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 11 Sep 2004 20:01:03 +0000 Subject: [PATCH] Fix result codes --- servers/slapd/back-sql/bind.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5