tbrehm
2010-07-12 60bd070e03a3c9fdb54690437cc9dbdbb7716aec
install/lib/installer_base.lib.php
@@ -211,6 +211,8 @@
      $tpl_ini_array['web']['security_level'] = 20;
      $tpl_ini_array['web']['user'] = $conf['apache']['user'];
      $tpl_ini_array['web']['group'] = $conf['apache']['group'];
      $tpl_ini_array['web']['php_ini_path_apache'] = $conf['apache']['php_ini_path_apache'];
      $tpl_ini_array['web']['php_ini_path_cgi'] = $conf['apache']['php_ini_path_cgi'];
      $tpl_ini_array['mail']['pop3_imap_daemon'] = ($conf['dovecot']['installed'] == true)?'dovecot':'courier';
      $tpl_ini_array['mail']['mail_filter_syntax'] = ($conf['dovecot']['installed'] == true)?'sieve':'maildrop';
      $tpl_ini_array['dns']['bind_user'] = $conf['bind']['bind_user'];
@@ -635,6 +637,8 @@
      //* configure pam for SMTP authentication agains the ispconfig database
      $configfile = 'pamd_smtp';
      if(is_file("$pam/smtp"))    copy("$pam/smtp", "$pam/smtp~");
      // On some OSes smtp is world readable which allows for reading database information.  Removing world readable rights should have no effect.
      if(is_file("$pam/smtp"))    exec("chmod o= $pam/smtp");
      if(is_file("$pam/smtp~"))   exec("chmod 400 $pam/smtp~");
      $content = rf("tpl/$configfile.master");
@@ -1636,4 +1640,4 @@
   }
}
?>
?>