]> git.sur5r.net Git - openldap/commitdiff
Fix result codes
authorKurt Zeilenga <kurt@openldap.org>
Sat, 11 Sep 2004 20:01:03 +0000 (20:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 11 Sep 2004 20:01:03 +0000 (20:01 +0000)
servers/slapd/back-sql/bind.c

index a871cdc71d798a01a47b37bd1c8fea7f6315ab54..2f8d31c2c06c00e6d7c037a63c7b55a604dcce7c 100644 (file)
@@ -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;
        }