X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FStore%2FLDAP%2FBackend.pm;h=8c457b785e481e24c55bd1aafcd264adc6524df3;hb=62534b1b4eb2c8f2ab4208768f6924c25eb80e7b;hp=43819f99062512311c04be947ff19f04a642ae06;hpb=50f88c5d27ff7f70dc564592de7bd93aa08fb282;p=catagits%2FCatalyst-Authentication-Store-LDAP.git diff --git a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm index 43819f9..8c457b7 100644 --- a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm +++ b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm @@ -72,7 +72,7 @@ use base qw( Class::Accessor::Fast ); use strict; use warnings; -our $VERSION = '1.012'; +our $VERSION = '1.014'; use Catalyst::Authentication::Store::LDAP::User; use Net::LDAP; @@ -226,7 +226,8 @@ sub ldap_bind { $self->_ldap_bind_anon($ldap); } else { - if ($bindpw) { + # Don't fall back to unauthenticated bind when authenticating + if ($bindpw or $forauth eq 'forauth') { my $mesg = $ldap->bind( $binddn, 'password' => $bindpw ); if ( $mesg->is_error ) {