{ use esmith::util; my $ldapbase = esmith::util::ldapBase ($DomainName); my $pref = ((${'mozilla-mcd'}{'TBEnforce'} || 'disabled') eq 'enabled') ? "lockPref":"defaultPref"; $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('PREF', '$pref'); EOF }