From 15005034e54905478ec1cb51f70496282c77d141 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Nov 2008 13:40:46 +0000 Subject: [PATCH] Updated samba handling -sambaHomeDrive can be empty. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13046 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../samba/personal/samba/class_sambaAccount.inc | 10 +++++++++- gosa-plugins/samba/personal/samba/samba3.tpl | 2 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 42b84c089..e366f9848 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -508,7 +508,7 @@ class sambaAccount extends plugin } $smarty->assign("domains", $domains); } - $letters= array(); + $letters= array(""); for ($i= 68; $i<91; $i++){ $letters[]= chr($i).":"; } @@ -750,6 +750,14 @@ class sambaAccount extends plugin if ($this->samba3){ + /* sambaHomePath requires sambaHomeDrive and vice versa */ + if(!empty($this->sambaHomePath) && empty($this->sambaHomeDrive)){ + $message[]= msgPool::required(_("Home drive")); + } + if(!empty($this->sambaHomeDrive) && empty($this->sambaHomePath)){ + $message[]= msgPool::required(_("Home path")); + } + /* Strings */ foreach (array( "sambaHomePath" => _("Home directory"), "sambaProfilePath" => _("Profile path")) as $key => $val){ diff --git a/gosa-plugins/samba/personal/samba/samba3.tpl b/gosa-plugins/samba/personal/samba/samba3.tpl index 64ee0a3b1..aecc65815 100644 --- a/gosa-plugins/samba/personal/samba/samba3.tpl +++ b/gosa-plugins/samba/personal/samba/samba3.tpl @@ -17,7 +17,6 @@ {/render} {render acl=$sambaHomeDriveACL checkbox=$multiple_support checked=$use_sambaHomeDrive} {/render} @@ -110,7 +109,6 @@ {/render} {render acl=$AllowLoginOnTerminalServerACL checkbox=$multiple_support checked=$use_CtxWFHomeDirDrive} {/render} -- 2.30.2