From: zeph Date: Tue, 25 Mar 2008 17:49:30 +0000 (+0000) Subject: sudo-ldap deleting... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=94266d9a2fc4c42ab90e08af5e2d3f15a6c6be49;p=gosa.git sudo-ldap deleting... git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9982 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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]); + } + } + }