Code

Updated userPassword permission for some systems.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Oct 2008 07:56:34 +0000 (07:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Oct 2008 07:56:34 +0000 (07:56 +0000)
-the ACL attribute is now named "userPassword" instead of "gotoRootPasswd"

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12776 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_componentGeneric.inc
gosa-plugins/systems/admin/systems/class_divListSystem.inc
gosa-plugins/systems/admin/systems/class_servGeneric.inc
gosa-plugins/systems/admin/systems/class_systemManagement.inc

index a03b57adfdb0bfa037861ad9b81081ba078f7378..743da7e2c9908e35e5b7772a4f60d056b1065955 100644 (file)
@@ -318,7 +318,7 @@ class componentGeneric extends plugin
             "cn"                  => _("Name"),
             "base"                => _("Base"),
             "description"         => _("Description"),
-            "gotoRootPasswd"      => _("Root password"))
+            "userPassword"      => _("Root password"))
           ));
   }
 
index 68f4fd26ed45fb7ec3b801afa9cb4e45bb0408f7..a68c74497b3e0614001340d4aeb18fad8ef07445 100644 (file)
@@ -343,9 +343,9 @@ class divListSystem extends MultiSelectWindow
         $display= $val["cn"][0].$dsc;
       }
 
-      /* Check if this is a terminal/workstation && if we are allowed to change the gotoRootPasswd */
+      /* Check if this is a terminal/workstation && if we are allowed to change the userPassword */
       $display_key_for = array("terminal","workstation","server","component");
-      $pwd_acl = $ui->get_permissions($val['dn'],$tabs[$type]['ACL'],"gotoRootPasswd");
+      $pwd_acl = $ui->get_permissions($val['dn'],$tabs[$type]['ACL'],"userPassword");
       if(preg_match("/w/",$pwd_acl) && in_array($type,$display_key_for)){
         $action2 = "<input class='center' type='image' src='images/lists/key.png' alt='"._("Password")."'   name='system_setpwd_%KEY%' title='"._("Set password")."'>";
       }else{
index 0cd22e2397279e15f85832db50cd49a4adf63c0f..664f024c7c5d6192b24db4d2a5567642b6f1929e 100644 (file)
@@ -514,7 +514,7 @@ class servgeneric extends plugin
             "base"          => _("Base"),
 
             "gotoMode"      => _("Goto mode"),
-            "gotoRootPasswd"=> _("Root password"),
+            "userPassword"=> _("Root password"),
             "FAIstate"      => _("Action flag"))
           ));
   }
index d4b6dc800fcc16b0b9e774378ca1ee8b606a135d..f2c37eecf1fb58dad694940c67fa852bea23cce4 100644 (file)
@@ -587,7 +587,7 @@ class systems extends plugin
       $acl      = $tabs[$type]["ACL"];
       $tabclass = $tabs[$type]["TABCLASS"];
       $ui       = get_userinfo();
-      $tabacl   = $ui->get_permissions($dn,$acl,"gotoRootPasswd");
+      $tabacl   = $ui->get_permissions($dn,$acl,"userPassword");
       if(preg_match("/w/",$tabacl)){
         $this->dn= $this->terminals[$s_entry]['dn'];
         session::set('objectinfo',$this->dn);
@@ -640,7 +640,7 @@ class systems extends plugin
    
         /* Get acls */
         $ui       = get_userinfo();
-        $tabacl   = $ui->get_permissions($this->dn,$acl,"gotoRootPasswd");
+        $tabacl   = $ui->get_permissions($this->dn,$acl,"userPassword");
 
         /* Check acls */
         if(preg_match("/w/",$tabacl)){