From: Dominik Csapak Date: Thu, 11 Jan 2018 08:49:31 +0000 (+0100) Subject: fix #1612: give authenticate_user_ldap the realm on second server X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=f4e7fc7bab401301b6ddecbf0f82070ef310bc25 fix #1612: give authenticate_user_ldap the realm on second server this was missing and lead to 'use of unitialized value $realm...' and a not working second server if a bindpw was defined Signed-off-by: Dominik Csapak Reviewed-by: Thomas Lamprecht --- diff --git a/PVE/Auth/LDAP.pm b/PVE/Auth/LDAP.pm index 310234a..9f08504 100755 --- a/PVE/Auth/LDAP.pm +++ b/PVE/Auth/LDAP.pm @@ -145,7 +145,7 @@ sub authenticate_user { my $err = $@; return 1 if !$err; die $err if !$config->{server2}; - &$authenticate_user_ldap($config, $config->{server2}, $username, $password); + &$authenticate_user_ldap($config, $config->{server2}, $username, $password, $realm); } 1;