From 424aceb664df7903fe33767e68eb2a75c5d5559a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick?= Date: Wed, 19 Feb 2014 10:59:59 -0500 Subject: [PATCH] Only update the password if the LDAP password field was mapped. --- C4/Auth_with_ldap.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index 3b40015..f403384 100644 --- a/C4/Auth_with_ldap.pm +++ b/C4/Auth_with_ldap.pm @@ -314,8 +314,8 @@ sub update_local { ((map {$borrower->{$_}} @keys), $borrowerid) ); - # MODIFY PASSWORD/LOGIN - _do_changepassword($userid, $borrowerid, $password); + # MODIFY PASSWORD/LOGIN if password was mapped + _do_changepassword($userid, $borrowerid, $password) if $borrower->{'password'}; } 1; -- 1.7.2.5