From 0e1fa9979570c89cc1bdec019623bc80e0d68d29 Mon Sep 17 00:00:00 2001 From: zeph Date: Sun, 23 Mar 2008 21:58:49 +0000 Subject: [PATCH] more about sudo-ldap git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9963 594d385d-05f5-0310-b6e9-bd551577e9d8 --- sudo-ldap/src/class_sudoldap.inc | 6 ++++-- sudo-ldap/src/class_sudoldapEditRole.inc | 8 ++++++-- sudo-ldap/src/sudoldapeditrole.tpl | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 sudo-ldap/src/sudoldapeditrole.tpl 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} +
+
+

+ + +

+
+ -- 2.30.2