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.
33 lines
1.1 KiB
33 lines
1.1 KiB
{
|
|
|
|
use esmith::util;
|
|
|
|
my $ldapbase = esmith::util::ldapBase ($DomainName);
|
|
|
|
my $tbpref = ((${'mozilla-mcd'}{'TBEnforce'} || 'disabled') =~ m/^enabled|on|1|yes$/) ? "lockPref":"defaultPref";
|
|
my $ffpref = ((${'mozilla-mcd'}{'FFEnforce'} || 'disabled') =~ m/^enabled|on|1|yes$/) ? "lockPref":"defaultPref";
|
|
my $url = ${'mozilla-mcd'}{'HomeURL'} || 'https://auth.' . "$DomainName";
|
|
my @noenforcegroups = split( /[;,]/, (${'mozilla-mcd'}{'NoEnforceGroups'} || '') );
|
|
my @wlgroups = split( /[;,]/, (${'mozilla-mcd'}{'WhiteListGroups'} || '') );
|
|
|
|
my $noenforcegroups = join (',', @noenforcegroups);
|
|
my $wlgroups = join (',', @wlgroups);
|
|
|
|
$OUT .=<<"EOF";
|
|
|
|
define('DOMAIN', '$DomainName');
|
|
define('USER_BASE', 'ou=Users,$ldapbase');
|
|
define('IMAP_SERVER', '$SystemName.$DomainName');
|
|
define('IMAP_PORT', '$imaps{'TCPPort'}');
|
|
define('SMTP_SERVER', '$SystemName.$DomainName');
|
|
define('SMTP_PORT', '$ssmtpd{'TCPPort'}');
|
|
define('LDAP_SERVER', 'localhost');
|
|
define('TB_PREF', '$tbpref');
|
|
define('FF_PREF', '$ffpref');
|
|
define('HOME_URL', '$url');
|
|
\$NOENFORCEGROUPS = array($noenforcegroups);
|
|
\$WHITELISTGROUPS = array($wlgroups);
|
|
|
|
EOF
|
|
|
|
}
|
|
|