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 <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
my $err = $@;
return 1 if !$err;
die $err if !$config->{server2};
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);