X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fpersonal%2Fconnectivity%2Fclass_pptpAccount.inc;h=c772d322bc646f663828aa5b2169e7e9b4de0bb4;hb=eaff46aa623a20b28b90c8482eb0a4f1b26f399f;hp=04ea2390c463ac95cfa63ed3dcd34f4fd0a775ac;hpb=2731357c333228187a504bee9df887dbf18f5538;p=gosa.git diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc index 04ea2390c..c772d322b 100644 --- a/plugins/personal/connectivity/class_pptpAccount.inc +++ b/plugins/personal/connectivity/class_pptpAccount.inc @@ -26,11 +26,6 @@ class pptpAccount extends plugin var $plHeadline= "PPTP"; var $plDescription= "This does something"; - /* CLI vars */ - var $cli_summary= "Manage users pptp account"; - var $cli_description= "Some longer text\nfor help"; - var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser"); - /* attribute list for save action */ var $attributes= array(); var $objectclasses= array("pptpServerAccount"); @@ -81,7 +76,7 @@ class pptpAccount extends plugin $this->cleanup(); $ldap->modify ($this->attrs); - show_ldap_error($ldap->get_error(), _("Removing PPTP account failed")); + show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PPTP account with dn '%s' failed."),$this->dn)); /* Optionally execute a command after we're done */ $this->handle_post_events('remove'); @@ -124,7 +119,7 @@ class pptpAccount extends plugin $this->cleanup(); $ldap->modify ($this->attrs); - show_ldap_error($ldap->get_error(), _("Saving PPTP account failed")); + show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PPTP account with dn '%s' failed."),$this->dn)); /* Optionally execute a command after we're done */ if ($this->initially_was_account == $this->is_account){ @@ -137,6 +132,19 @@ class pptpAccount extends plugin } } + + /* Return pluign informations for acl handling + #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */ + function plInfo() + { + return (array( + "plDescription" => _("PPTP account"), + "plSelfModify" => TRUE, + "plDepends" => array("objectClass" => "gosaAccount"), + "pptpServerAccount" => "!!! FIXME "._("PPTP account"))); + } + + } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: