diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthLDAP.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthLDAP.pm index 5d9e56d68..a8efffadf 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthLDAP.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthLDAP.pm @@ -39,6 +39,7 @@ sub authenticate { # Set the dn unless done before unless ( $self->{dn} ) { my $tmp = $self->_subProcess(qw(_formateFilter _search)); + $self->{sessionInfo}->{dn} = $self->{dn}; return $tmp if ($tmp); } return $self->ldap->userBind( $self->{dn}, password => $self->{password} );