On SME8, smeserver-doivecot isn't always installed

Make sure it is before enabling CAS Auth
tags/0.2.26_el5 0.2.26_el5
Daniel Berteaud 10 years ago
parent fdb0e674eb
commit 6a1c1918c8
  1. 2
      root/etc/e-smith/templates/etc/pam.d/dovecot/05cas
  2. 2
      root/etc/e-smith/templates/etc/sogo/sogo.conf/55authSource

@ -1,6 +1,6 @@
{
my $auth = $sogod{'Authentication'} || 'cas';
if (lc $auth eq 'cas'){
if (lc $auth eq 'cas' && -d '/var/service/dovecot'){
$OUT .=<<"HERE";
auth sufficient pam_cas.so -simap://localhost -f/etc/pam_cas.conf
HERE

@ -57,7 +57,7 @@
);
{
my $auth = $sogod{'Authentication'} || 'cas';
if (lc $auth eq 'cas'){
if (lc $auth eq 'cas' && -d '/var/service/dovecot'){
$OUT .=<<"HERE";
SOGoAuthenticationType = cas;
SOGoCASServiceURL = "https://auth.$DomainName/cas/";

Loading…
Cancel
Save