diff --git a/createlinks b/createlinks index ab46ad9..6aa0959 100644 --- a/createlinks +++ b/createlinks @@ -12,9 +12,9 @@ templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-upd templates2events("/home/e-smith/files/shares/wpkg/files/profiles/variables.xml", qw(wpkg-update bootstrap-console-save)); templates2events("/home/e-smith/files/samba/netlogon/netlogon.bat", qw(workgroup-update bootstrap-consolesave)); -templates2events("/usr/share/mozilla-mcd/thunderbird.conf.php", qw(wpkg-update webapps-update bootstrap-consolesave)); +templates2events("/usr/share/mozilla-mcd/conf.php", qw(wpkg-update webapps-update bootstrap-console-save)); -safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/template-begin"); -safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/template-end"); +safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/conf.php/template-begin"); +safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/mozilla-mcd/conf.php/template-end"); panel_link('logonscript','manager'); diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozillaMcd similarity index 92% rename from root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird rename to root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozillaMcd index 1870594..02e1cc5 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozillaMcd @@ -7,6 +7,7 @@ if ((${'mozilla-mcd'}{'status'} || 'disabled')eq 'enabled'){ $OUT .=<<"EOF"; Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php +Alias /firefox.cfg /usr/share/mozilla-mcd/firefox.php AddType application/x-httpd-php .php .php3 diff --git a/root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All b/root/etc/e-smith/templates/usr/share/mozilla-mcd/conf.php/10All similarity index 50% rename from root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All rename to root/etc/e-smith/templates/usr/share/mozilla-mcd/conf.php/10All index 13f154d..4a74f2d 100644 --- a/root/etc/e-smith/templates/usr/share/mozilla-mcd/thunderbird.conf.php/10All +++ b/root/etc/e-smith/templates/usr/share/mozilla-mcd/conf.php/10All @@ -4,7 +4,9 @@ use esmith::util; my $ldapbase = esmith::util::ldapBase ($DomainName); -my $pref = ((${'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 $url = ${'mozilla-mcd'}{'HomeURL'} || 'https://auth.' . "$DomainName"; $OUT .=<<"EOF"; @@ -15,7 +17,9 @@ define('IMAP_PORT', '$imaps{'TCPPort'}'); define('SMTP_SERVER', '$SystemName.$DomainName'); define('SMTP_PORT', '$ssmtpd{'TCPPort'}'); define('LDAP_SERVER', 'localhost'); -define('PREF', '$pref'); +define('TB_PREF', '$tbpref'); +define('FF_PREF', '$ffpref'); +define('HOME_URL', '$url'); EOF diff --git a/root/usr/share/mozilla-mcd/firefox.php b/root/usr/share/mozilla-mcd/firefox.php new file mode 100644 index 0000000..3896611 --- /dev/null +++ b/root/usr/share/mozilla-mcd/firefox.php @@ -0,0 +1,62 @@ + + +// Disable auto updates +("app.update.enabled", false); +("app.update.auto", false); + +// Extensions +("extensions.installDistroAddons", true); +("extensions.enabledScopes", 13); +("extensions.autoDisableScopes", 2); + +// Disable the "know your rights" message +("browser.rights.3.shown", true); + +// Home page + +("startup.homepage_override_url", ""); +("startup.homepage_welcome_url", ""); + +// Do not check for default browser +("browser.shell.checkDefaultBrowser", false); + +// Disable popup blocker +// not that very useful anymore, and blocks legitim popups from SOGo +("dom.disable_open_during_load", false); + +// Block 3rd party cookies +("network.cookie.cookieBehavior", 1); + diff --git a/root/usr/share/mozilla-mcd/thunderbird.php b/root/usr/share/mozilla-mcd/thunderbird.php index 1081802..1b3c0f6 100644 --- a/root/usr/share/mozilla-mcd/thunderbird.php +++ b/root/usr/share/mozilla-mcd/thunderbird.php @@ -37,24 +37,24 @@ else { } // Local Account -("mail.account.account1.server", "server1"); -("mail.accountmanager.localfoldersserver", "server1"); -("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders"); -("mail.server.server1.hostname", "Local Folders"); -("mail.server.server1.name", "Dossiers locaux"); -("mail.server.server1.type", "none"); -("mail.server.server1.userName", "nobody"); +("mail.account.account1.server", "server1"); +("mail.accountmanager.localfoldersserver", "server1"); +("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders"); +("mail.server.server1.hostname", "Local Folders"); +("mail.server.server1.name", "Dossiers locaux"); +("mail.server.server1.type", "none"); +("mail.server.server1.userName", "nobody"); // SMTP config -("mail.smtp.defaultserver", "smtp1"); -("mail.smtpservers", "smtp1"); -("mail.smtpserver.smtp1.try_ssl", 3); -("mail.smtpserver.smtp1.port", ); -("mail.smtpserver.smtp1.hostname", ""); -("mail.smtpserver.smtp1.username", ""); +("mail.smtp.defaultserver", "smtp1"); +("mail.smtpservers", "smtp1"); +("mail.smtpserver.smtp1.try_ssl", 3); +("mail.smtpserver.smtp1.port", ); +("mail.smtpserver.smtp1.hostname", ""); +("mail.smtpserver.smtp1.username", ""); // Default account is acocunt2 (the personal account) -("mail.accountmanager.defaultaccount", "account2"); +("mail.accountmanager.defaultaccount", "account2"); // Personnal account -("mail.account.account2.server", "server"); -("mail.server.server2.hostname", ""); -("mail.server.server2.name", ""); -("mail.server.server2.port", ); -("mail.server.server2.socketType", 3); -("mail.server.server2.type", "imap"); -("mail.server.server2.userName", ""); +("mail.account.account2.server", "server"); +("mail.server.server2.hostname", ""); +("mail.server.server2.name", ""); +("mail.server.server2.port", ); +("mail.server.server2.socketType", 3); +("mail.server.server2.type", "imap"); +("mail.server.server2.userName", ""); -("mail.identity.id.fullName", ""); -("mail.identity.id.organization", ""); -("mail.identity.id.smtpServer", "smtp1"); -("mail.identity.id.useremail", ""); -("mail.identity.id.valid", true); +("mail.identity.id.fullName", ""); +("mail.identity.id.organization", ""); +("mail.identity.id.smtpServer", "smtp1"); +("mail.identity.id.useremail", ""); +("mail.identity.id.valid", true); defaultPref("mail.identity.id.fcc_folder", "imap://@/Sent"); defaultPref("mail.identity.id.draft_folder", "imap://@/Drafts"); defaultPref("mail.identity.id.stationery_folder", "imap://@/Templates"); @@ -95,20 +95,20 @@ $account++; $id++; } ?> -("mail.account.account2.identities", ""); -("mail.accountmanager.accounts", "account1,account2"); +("mail.account.account2.identities", ""); +("mail.accountmanager.accounts", "account1,account2"); // Disable auto updates -("app.update.enabled", false); -("app.update.auto", false); +("app.update.enabled", false); +("app.update.auto", false); // Extensions -("extensions.installDistroAddons", true); -("extensions.enabledScopes", 13); -("extensions.autoDisableScopes", 2); +("extensions.installDistroAddons", true); +("extensions.enabledScopes", 13); +("extensions.autoDisableScopes", 2); // Spam -("mail.adaptivefilters.junk_threshold", 500); +("mail.adaptivefilters.junk_threshold", 500); // Checks IMAP folders defaultPref("mail.check_all_imap_folders_for_new", true);