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.
28 lines
790 B
28 lines
790 B
13 years ago
|
{
|
||
|
|
||
|
use esmith::util;
|
||
|
|
||
|
my $ldapbase = esmith::util::ldapBase ($DomainName);
|
||
|
|
||
13 years ago
|
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";
|
||
13 years ago
|
|
||
13 years ago
|
$OUT .=<<"EOF";
|
||
|
|
||
|
define('DOMAIN', '$DomainName');
|
||
|
define('USER_BASE', 'ou=Users,$ldapbase');
|
||
|
define('IMAP_SERVER', '$SystemName.$DomainName');
|
||
13 years ago
|
define('IMAP_PORT', '$imaps{'TCPPort'}');
|
||
13 years ago
|
define('SMTP_SERVER', '$SystemName.$DomainName');
|
||
13 years ago
|
define('SMTP_PORT', '$ssmtpd{'TCPPort'}');
|
||
13 years ago
|
define('LDAP_SERVER', 'localhost');
|
||
13 years ago
|
define('TB_PREF', '$tbpref');
|
||
|
define('FF_PREF', '$ffpref');
|
||
|
define('HOME_URL', '$url');
|
||
13 years ago
|
|
||
13 years ago
|
|
||
|
EOF
|
||
|
|
||
|
}
|