Commit 47b925cd authored by frankiejol's avatar frankiejol
Browse files

fix(auth): continue with match if bind failed

issue #1465
parent e348dbb1
......@@ -440,7 +440,8 @@ sub _login_bind {
for my $user (@user) {
my $dn = $user->dn;
$found++;
my $ldap = _connect_ldap($dn, $password);
my $ldap;
eval { $ldap = _connect_ldap($dn, $password) };
if ( $ldap ) {
$self->{_auth} = 'bind';
$self->{_ldap_entry} = $user;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment