From f194142de10e24facbef2d379582a46beb74af04 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Apr 2008 12:33:31 +0000 Subject: [PATCH] Updated sudo stuff. -You are now able to remove sudo entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10116 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/sudo/class_sudoGeneric.inc | 10 ++++++++++ gosa-core/plugins/admin/sudo/remove.tpl | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc b/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc index ee3dfcf15..158f9e7f5 100644 --- a/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc +++ b/gosa-core/plugins/admin/sudo/class_sudoGeneric.inc @@ -166,6 +166,10 @@ class sudo extends plugin { plugin::remove_from_parent(); + $ldap = $this->config->get_ldap_link(); + $ldap->cd(get_ou("sudoou")) ; + $ldap->rmdir($this->dn); + /* Send signal to the world that we've done */ $this->handle_post_events("remove"); } @@ -188,8 +192,14 @@ class sudo extends plugin $ldap->cd($this->dn); if($this->is_new){ $ldap->add($this->attrs);; + + /* Send signal to the world that we've done */ + $this->handle_post_events("create"); }else{ $ldap->modify($this->attrs);; + + /* Send signal to the world that we've done */ + $this->handle_post_events("modify"); } } diff --git a/gosa-core/plugins/admin/sudo/remove.tpl b/gosa-core/plugins/admin/sudo/remove.tpl index 80b656b49..65166c23a 100644 --- a/gosa-core/plugins/admin/sudo/remove.tpl +++ b/gosa-core/plugins/admin/sudo/remove.tpl @@ -12,11 +12,11 @@

{if $multiple} - +   - + {else} - +   {/if} -- 2.30.2