diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm index 21fdbb23b..3f408f248 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/LDAP.pm @@ -11,7 +11,7 @@ use Lemonldap::NG::Portal::Main::Constants qw( PE_PP_PASSWORD_EXPIRED ); -our $VERSION = '2.0.3'; +our $VERSION = '2.0.5'; # Inheritance: UserDB::LDAP provides all needed ldap functions extends @@ -70,6 +70,7 @@ sub authenticate { my $res = $self->userBind( $req, $req->data->{dn}, password => $req->data->{password} ); + $self->setSecurity($req) if ($res); # Remember password if password reset needed if (