Code

Updated acls
[gosa.git] / plugins / personal / connectivity / class_proxyAccount.inc
index 1c2596582ec66e285f201a3e98140bc11d387de0..cddd05d9b3c7bad1f1a7f983642d069ee0abcaf5 100644 (file)
@@ -5,11 +5,6 @@ class proxyAccount extends plugin
   var $plHeadline= "Proxy";
   var $plDescription= "This does something";
 
-  /* CLI vars */
-  var $cli_summary= "Manage users proxy account";
-  var $cli_description= "Some longer text\nfor help";
-  var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
   /* Proxy attributes */
   var $gosaProxyAcctFlags= "[N    ]";
   var $gosaProxyID= "";
@@ -151,9 +146,9 @@ class proxyAccount extends plugin
         $this->attributes, "Save");
     $ldap->cd($this->dn);
     $this->cleanup();
-$ldap->modify ($this->attrs); 
+    $ldap->modify ($this->attrs); 
 
-    show_ldap_error($ldap->get_error());
+    show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/proxy account with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove");
@@ -162,7 +157,8 @@ $ldap->modify ($this->attrs);
   /* Check values */
   function check()
   {
-    $message= array();
+    /* Call common method to give check the hook */
+    $message= plugin::check();
     
     /* We've got only one value to check for positive integer or emtpy field */
     if ($this->is_account){
@@ -256,10 +252,9 @@ $ldap->modify ($this->attrs);
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->dn);
     $this->cleanup();
-$ldap->modify ($this->attrs); 
-
+    $ldap->modify ($this->attrs); 
 
-    show_ldap_error($ldap->get_error());
+    show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/proxy account with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
     if ($this->initially_was_account == $this->is_account){
@@ -272,6 +267,26 @@ $ldap->modify ($this->attrs);
 
   }
 
+  /* Return plugin informations for acl handling 
+      #FIME There possibly some attributes that can be combined to one acl. */
+  function plInfo()
+  {
+    return (array(  "plDescription"   => _("Intranet account settings"),
+          "plSelfModify"    => TRUE,
+          "plDepends"       => array("objectClass" => "gosaAccount"),
+
+          "gosaProxyID"           => "!!! FIXME "._("gosaProxyID"),
+    
+          "gosaProxyFlag_F"   => _("Filter unwanted content"), 
+          "gosaProxyFlag_T"   => _("Limit proxy access"),
+          "gosaProxyFlag_B"   => _("Restrict proxy usage by quota"),
+
+          "gosaProxyWorkingTime"  => _("Limit proxy access"),
+          "gosaProxyQuota"        => _("Limit quota"),
+          "gosaProxyQuotaPeriod"  => _("Quota limit period")));
+  }
+
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: