From bc7d9a06b9951e9e7c37a929da6d1b2c96bfff85 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 17 Dec 2004 16:47:23 +0000 Subject: [PATCH] fixed Samba flags if multiple hosts were created --- lam-0.4/templates/account/hostedit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam-0.4/templates/account/hostedit.php b/lam-0.4/templates/account/hostedit.php index 96688c2d..be933901 100644 --- a/lam-0.4/templates/account/hostedit.php +++ b/lam-0.4/templates/account/hostedit.php @@ -260,6 +260,9 @@ do { // X-Or, only one if() can be true $_SESSION['account_'.$varkey.'_account_new'] = loadHostProfile('default'); $account_new =& $_SESSION['account_'.$varkey.'_account_new']; $account_new ->type = 'host'; + $account_new->smb_flags['W'] = 1; + $account_new->general_homedir = '/dev/null'; + $account_new->general_shell = '/bin/false'; break; } // Load Profile and reset all attributes to settings in profile