From 94266d9a2fc4c42ab90e08af5e2d3f15a6c6be49 Mon Sep 17 00:00:00 2001 From: zeph Date: Tue, 25 Mar 2008 17:49:30 +0000 Subject: [PATCH] sudo-ldap deleting... git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9982 594d385d-05f5-0310-b6e9-bd551577e9d8 --- sudo-ldap/src/class_sudoldap.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sudo-ldap/src/class_sudoldap.inc b/sudo-ldap/src/class_sudoldap.inc index 335416373..45bb500e8 100644 --- a/sudo-ldap/src/class_sudoldap.inc +++ b/sudo-ldap/src/class_sudoldap.inc @@ -168,6 +168,17 @@ class sudoldap extends plugin return($ret); } + function RemoveRole($cn){ + if($cn!=""){ + $ldap= $this->config->get_ldap_link(); + $dn = "cn=".$cn.",ou=SUDOers,".$this->config->current['BASE']; + $ldap->cd($dn); + $ldap->rmdir_recursive($dn); + show_ldap_error($ldap->get_error(), _("Removing DNS entries failed")); + unset($this->Roles[$cn]); + } + } + } -- 2.30.2