X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAuth%2FAD.pm;h=35396b937c77f2efffc5d93c18d8740827204c0f;hp=eb502f7bbf3a3348dc8fb44568fe5c1af641ea04;hb=11a904361035913d29d8f98c6ea46202f06b4e67;hpb=396034e4432b85380080d2e35e9506344f70117e 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};