Improve & fix AD backend (#2377)
This commit is contained in:
parent
c742d8320e
commit
91907eba90
|
@ -201,7 +201,7 @@ sub userId {
|
||||||
my $userId =
|
my $userId =
|
||||||
$req->userData->{ $Lemonldap::NG::Handler::Main::tsv->{whatToTrace}
|
$req->userData->{ $Lemonldap::NG::Handler::Main::tsv->{whatToTrace}
|
||||||
|| '_whatToTrace' }
|
|| '_whatToTrace' }
|
||||||
|| $req->userData->{'uid'} # Fix 2377
|
|| $req->userData->{'_user'} # Fix 2377
|
||||||
|| 'anonymous';
|
|| 'anonymous';
|
||||||
|
|
||||||
$self->logger->debug("Returned userId: $userId");
|
$self->logger->debug("Returned userId: $userId");
|
||||||
|
|
|
@ -150,7 +150,7 @@ sub authenticate {
|
||||||
and $self->conf->{ldapAllowResetExpiredPassword} )
|
and $self->conf->{ldapAllowResetExpiredPassword} )
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$req->data->{oldpassword} = $self->{password};
|
$req->data->{oldpassword} = $req->data->{password}; # Fix 2377
|
||||||
$req->data->{noerror} = 1;
|
$req->data->{noerror} = 1;
|
||||||
$self->setSecurity($req);
|
$self->setSecurity($req);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user