From: hickert Date: Wed, 24 Mar 2010 13:38:40 +0000 (+0000) Subject: Fixed samba errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bf45990fc4d0351eaa65b5815fe46317de5bf18;p=gosa.git Fixed samba errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17111 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 828c9919b..2346f6124 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -645,6 +645,7 @@ class sambaAccount extends plugin /* Get user infos */ foreach($user_attributes as $attr){ + $$attr = "unset"; if(isset($this->attrs[$attr])){ $$attr = $this->attrs[$attr][0]; } @@ -669,6 +670,13 @@ class sambaAccount extends plugin /* DOMAIN Attributes */ + /* sambaMinPwdLength: Password length has a default of 5 + */ + if($sambaSID == "unset"){ + $sambaSID = "("._("unset").")"; + } + + /* sambaPwdHistoryLength: Length of Password History Entries (default: 0 => off) /* sambaMinPwdLength: Password length has a default of 5 */ if($sambaMinPwdLength == "unset" || $sambaMinPwdLength == 5){ @@ -809,7 +817,7 @@ class sambaAccount extends plugin $str = "\n
". - "\n". + "\n
". "\n". "\n". "\n".
"._("Domain attributes")."
"._("Min password length").": ".$sambaMinPwdLength."
"._("Min password length").": ".$sambaMinPwdLength."