From 11a904361035913d29d8f98c6ea46202f06b4e67 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 22 May 2014 07:12:25 +0200 Subject: [PATCH] use correct connection string for AD auth (use encryption and port info). --- PVE/Auth/AD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.39.2