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.
|
|
|
{
|
|
|
|
# Only enable auth cache if SOGo is using CAS
|
|
|
|
my $sogo_auth = $sogod{'Authentication'} || 'cas';
|
|
|
|
if (lc $sogo_auth eq 'cas'){
|
|
|
|
my $size = $dovecot{'AuthCacheSize'} || '5242880';
|
|
|
|
my $ttl = $dovecot{'AuthCacheTTL'} || '7200';
|
|
|
|
my $neg_ttl = $dovecot{'AuthCacheNegativeTTL'} || '0';
|
|
|
|
$OUT .=<<"EOF";
|
|
|
|
auth_cache_size = $size
|
|
|
|
auth_cache_ttl = $ttl
|
|
|
|
auth_cache_negative_ttl = $neg_ttl
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$OUT .= "# No auth cache as SOGo doesn't use CAS";
|
|
|
|
}
|
|
|
|
}
|