From: Dietmar Maurer Date: Thu, 22 May 2014 05:12:25 +0000 (+0200) Subject: use correct connection string for AD auth (use encryption and port info). X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=11a904361035913d29d8f98c6ea46202f06b4e67;hp=396034e4432b85380080d2e35e9506344f70117e use correct connection string for AD auth (use encryption and port info). --- diff --git a/PVE/Auth/AD.pm b/PVE/Auth/AD.pm index eb502f7..35396b9 100755 --- a/PVE/Auth/AD.pm +++ b/PVE/Auth/AD.pm @@ -80,7 +80,7 @@ my $authenticate_user_ad = sub { my $scheme = $config->{secure} ? 'ldaps' : 'ldap'; my $conn_string = "$scheme://${server}:$port"; - my $ldap = Net::LDAP->new($server) || die "$@\n"; + my $ldap = Net::LDAP->new($conn_string) || die "$@\n"; $username = "$username\@$config->{domain}" if $username !~ m/@/ && $config->{domain};