Code

Updated samba handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 10:10:24 +0000 (10:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 10:10:24 +0000 (10:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19033 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/samba/personal/samba/class_sambaAccount.inc
gosa-plugins/samba/personal/samba/samba3.tpl

index 1ea64c29e873cca5eb0a3a511c5e8c9aa621d462..39695c420f1bfbc9b8a877363add0c1371923a16 100644 (file)
@@ -1217,13 +1217,15 @@ class sambaAccount extends plugin
             $this->save_object();
             plugin::multiple_save_object();
             foreach(array("allow_pwchange","tslogin","CtxWFHomeDir","CtxWFHomeDirDrive","CtxWFProfilePath",
-                        "inherit","CtxWorkDirectory","CtxInitialProgram","CtxMaxConnectionTimeF","CtxMaxConnectionTime","CtxMaxDisconnectionTimeF",
+                        "inherit","CtxWorkDirectory","CtxInitialProgram","CtxMaxConnectionTimeF",
+                        "CtxMaxConnectionTime","CtxMaxDisconnectionTimeF",
                         "CtxMaxDisconnectionTime","CtxMaxIdleTimeF","CtxMaxIdleTime","connectclientdrives",
                         "onnectclientprinters","defaultprinter","shadow","brokenconn",
-                        "reconn","allow_pwchange","connectclientprinters","no_expiry","no_password_required","temporary_disable",
-                        "password_expires","logon_time_set","logoff_time_set","kickoff_time_set","SetSambaLogonHours",
-                        "workstation_list","enforcePasswordChange","cannotChangePassword") as $attr){
-                if(isset($_POST["use_".$attr])){
+                        "reconn","connectclientprinters","SetSambaLogonHours","workstation_list",
+                        "enforcePasswordChange", "passwordNeverExpires", "noPasswordRequired",
+                        "temporaryDisabled","cannotChangePassword"
+                        ) as $attr){
+                if(isset($_POST["use_".$attr]) || isset($_POST["use_flag_".$attr]) ){
                     $this->multi_boxes[] = $attr;
                 }
             }
index f631d7250c1929fbb0b6a467a3e14308a3cde370..750738e54b2c3234eb348231957546605aea508d 100644 (file)
         <tr>
             <td>
                 {render acl=$passwordNeverExpiresACL  checkbox=$multiple_support checked=$use_passwordNeverExpires}
-                <input type='checkbox' value='1 'name="flag_passwordNeverExpires" 
+                <input type='checkbox' value='1name="flag_passwordNeverExpires" 
                     {if $flag_passwordNeverExpires} checked {/if} id='flag_passwordNeverExpires'>
                 {/render}
             </td>