You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
493 B
26 lines
493 B
{
|
|
|
|
# SSL Auth
|
|
my $ssl = $llng->prop('SSLAuth') || '';
|
|
|
|
if ($ssl eq 'optional' || $ssl eq 'require'){
|
|
# SSL Auth is enabled
|
|
# Configure common attributes
|
|
$conf->{'SSLLDAPField'} = 'uid';
|
|
$conf->{'SSLVar'} = 'SSL_CLIENT_S_DN_CN';
|
|
$conf->{'SSLRequire'} = '1';
|
|
|
|
if ($ssl eq 'optional'){
|
|
$conf->{'authentication'} = 'Multi SSL;LDAP';
|
|
}
|
|
else{
|
|
$conf->{'authentication'} = 'SSL';
|
|
}
|
|
}
|
|
else{
|
|
$conf->{'authentication'} = 'LDAP';
|
|
}
|
|
|
|
$OUT = '';
|
|
|
|
}
|
|
|