mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
revert unintended commit
This commit is contained in:
parent
f5936eb7fc
commit
845cc3d6ee
@ -100,15 +100,26 @@ backsql_bind( Operation *op, SlapReply *rs )
|
|||||||
}
|
}
|
||||||
e = &user_entry;
|
e = &user_entry;
|
||||||
|
|
||||||
a = attr_find( e->e_attrs, password );
|
if ( ! access_allowed( op, e, password, NULL, ACL_AUTH, NULL ) ) {
|
||||||
if ( a == NULL ) {
|
#if 1
|
||||||
rs->sr_err = LDAP_INVALID_CREDENTIALS;
|
rs->sr_err = LDAP_INVALID_CREDENTIALS;
|
||||||
|
#else
|
||||||
|
rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
|
||||||
|
#endif
|
||||||
goto error_return;
|
goto error_return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( slap_passwd_check( op, e, a, &op->oq_bind.rb_cred,
|
a = attr_find( e->e_attrs, password );
|
||||||
&rs->sr_text ) != 0 )
|
if ( a == NULL ) {
|
||||||
{
|
#if 1
|
||||||
|
rs->sr_err = LDAP_INVALID_CREDENTIALS;
|
||||||
|
#else
|
||||||
|
rs->sr_err = LDAP_INAPPROPRIATE_AUTH;
|
||||||
|
#endif
|
||||||
|
goto error_return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( slap_passwd_check( op->o_conn, a, &op->oq_bind.rb_cred, &rs->sr_text ) != 0 ) {
|
||||||
rs->sr_err = LDAP_INVALID_CREDENTIALS;
|
rs->sr_err = LDAP_INVALID_CREDENTIALS;
|
||||||
goto error_return;
|
goto error_return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user