mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-06-13 09:30:17 +00:00
use correct connection string for AD auth (use encryption and port info).
This commit is contained in:
parent
396034e443
commit
11a9043610
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user