|
|
@ -7,12 +7,11 @@ my $ldapbase = esmith::util::ldapBase ($DomainName); |
|
|
|
my $tbpref = ((${'mozilla-mcd'}{'TBEnforce'} || 'disabled') =~ m/^enabled|on|1|yes$/) ? "lockPref":"defaultPref"; |
|
|
|
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 $ffpref = ((${'mozilla-mcd'}{'FFEnforce'} || 'disabled') =~ m/^enabled|on|1|yes$/) ? "lockPref":"defaultPref"; |
|
|
|
my $url = ${'mozilla-mcd'}{'HomeURL'} || 'https://auth.' . "$DomainName"; |
|
|
|
my $url = ${'mozilla-mcd'}{'HomeURL'} || 'https://auth.' . "$DomainName"; |
|
|
|
my $noenforcegroups = ${'mozilla-mcd'}{'NoEnforceGroups'} || ''; |
|
|
|
my @noenforcegroups = split( /[;,]/, (${'mozilla-mcd'}{'NoEnforceGroups'} || '') ); |
|
|
|
# Format as a PHP array |
|
|
|
my @wlgroups = split( /[;,]/, (${'mozilla-mcd'}{'WhiteListGroups'} || '') ); |
|
|
|
$noenforcegroups =~ s/^,+|,+$//g; |
|
|
|
|
|
|
|
$noenforcegroups =~ s/^/'/g; |
|
|
|
my $noenforcegroups = join (',', @noenforcegroups); |
|
|
|
$noenforcegroups =~ s/$/'/g; |
|
|
|
my $wlgroups = join (',', @wlgroups); |
|
|
|
$noenforcegroups =~ s/[;,]/','/g; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
@ -27,6 +26,7 @@ define('TB_PREF', '$tbpref'); |
|
|
|
define('FF_PREF', '$ffpref'); |
|
|
|
define('FF_PREF', '$ffpref'); |
|
|
|
define('HOME_URL', '$url'); |
|
|
|
define('HOME_URL', '$url'); |
|
|
|
\$NOENFORCEGROUPS = array($noenforcegroups); |
|
|
|
\$NOENFORCEGROUPS = array($noenforcegroups); |
|
|
|
|
|
|
|
\$WHITELISTGROUPS = array($wlgroups); |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|