From 24d28533ad90293045a187e9f40e358f48ff0c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Thu, 30 Mar 2017 08:50:13 +0000 Subject: [PATCH] Fix LDAP test after session variable rewrite (#1169) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/LDAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/LDAP.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/LDAP.pm index 7d7567a07..ad02d0b27 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/LDAP.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Password/LDAP.pm @@ -25,7 +25,7 @@ sub modifyPassword { my ( $self, $req, $pwd ) = @_; # Call the modify password method - my $code = $self->ldap->userModifyPassword( $req->userData->{dn}, + my $code = $self->ldap->userModifyPassword( $req->userData->{_dn}, $pwd, $req->datas->{oldpassword} ); unless ( $code == PE_PASSWORD_OK ) {