From: zeph Date: Sun, 23 Mar 2008 21:58:49 +0000 (+0000) Subject: more about sudo-ldap X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e1fa9979570c89cc1bdec019623bc80e0d68d29;p=gosa.git more about sudo-ldap git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9963 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/sudo-ldap/src/class_sudoldap.inc b/sudo-ldap/src/class_sudoldap.inc index 7319e73ba..b4384cf74 100644 --- a/sudo-ldap/src/class_sudoldap.inc +++ b/sudo-ldap/src/class_sudoldap.inc @@ -17,13 +17,15 @@ class sudoldap extends plugin /* Plugin specific values */ - var $attributes = array( "sudoUser", + var $dialog = NULL; + + var $attributes = array("sudoUser", "sudoHost", "sudoCommand", "sudoRunAs", "sudoOption"); - var $objectclasses = array("sudoRole"); + var $objectclasses = array("sudoRole"); /* constructor, if 'dn' is set, the node loads the given 'dn' from LDAP */ diff --git a/sudo-ldap/src/class_sudoldapEditRole.inc b/sudo-ldap/src/class_sudoldapEditRole.inc index 0113233fe..093d30056 100644 --- a/sudo-ldap/src/class_sudoldapEditRole.inc +++ b/sudo-ldap/src/class_sudoldapEditRole.inc @@ -3,13 +3,13 @@ class sudoldapEditRole extends plugin { /* Plugin specific values */ - var $attributes = array( "sudoUser", + var $attributes = array("sudoUser", "sudoHost", "sudoCommand", "sudoRunAs", "sudoOption"); - var $objectclasses = array("sudoRole"); + var $objectclasses = array("sudoRole"); function sudoldapEditRole ($config, $dn= NULL,$attrs = array()) { @@ -27,6 +27,10 @@ class sudoldapEditRole extends plugin $smarty= get_smarty(); $display= ""; + /* Display template */ + $display.= $smarty->fetch( + get_template_path('sudoldapeditrole.tpl', TRUE)); + return($display); } /* Save data to object */ diff --git a/sudo-ldap/src/sudoldapeditrole.tpl b/sudo-ldap/src/sudoldapeditrole.tpl new file mode 100644 index 000000000..1f1b72219 --- /dev/null +++ b/sudo-ldap/src/sudoldapeditrole.tpl @@ -0,0 +1,19 @@ +

{t}sudo-ldap role{/t}

+ + + + +
+ {t}form{/t} +
+
+

+ + +

+
+