30 lines
555 B
Plaintext
30 lines
555 B
Plaintext
{
|
|
|
|
# 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';
|
|
}
|
|
|
|
# Enable CAS issuer DB
|
|
$conf->{'issuerDBCASActivation'} = 1;
|
|
|
|
$OUT = '';
|
|
|
|
}
|