mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-06-12 11:12:34 +00:00
ldaps: support TLS 1.3 as SSL version
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
07dd90d731
commit
3b7eaef10f
@ -34,9 +34,9 @@ sub properties {
|
|||||||
|
|
||||||
},
|
},
|
||||||
sslversion => {
|
sslversion => {
|
||||||
description => "LDAPS ssl version.",
|
description => "LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!",
|
||||||
type => 'string',
|
type => 'string',
|
||||||
enum => [qw(tlsv1 tlsv1_1 tlsv1_2)],
|
enum => [qw(tlsv1 tlsv1_1 tlsv1_2 tlsv1_3)],
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
default => {
|
default => {
|
||||||
@ -116,7 +116,7 @@ my $authenticate_user_ad = sub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($config->{secure}) {
|
if ($config->{secure}) {
|
||||||
$ad_args{sslversion} = $config->{sslversion} ? $config->{sslversion} : 'tlsv1_2';
|
$ad_args{sslversion} = $config->{sslversion} || 'tlsv1_2';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $ldap = Net::LDAP->new($conn_string, %ad_args) || die "$@\n";
|
my $ldap = Net::LDAP->new($conn_string, %ad_args) || die "$@\n";
|
||||||
|
@ -111,7 +111,7 @@ my $authenticate_user_ldap = sub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($config->{secure}) {
|
if ($config->{secure}) {
|
||||||
$ldap_args{sslversion} = $config->{sslversion} ? $config->{sslversion} : 'tlsv1_2';
|
$ldap_args{sslversion} = $config->{sslversion} || 'tlsv1_2';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $ldap = Net::LDAP->new($conn_string, %ldap_args) || die "$@\n";
|
my $ldap = Net::LDAP->new($conn_string, %ldap_args) || die "$@\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user