summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 066e1a7)
raw | patch | inline | side by side (parent: 066e1a7)
author | zeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Mar 2008 17:49:30 +0000 (17:49 +0000) | ||
committer | zeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Mar 2008 17:49:30 +0000 (17:49 +0000) |
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 | patch | blob | history |
index 3354163738b700827cc9019c4622672acee6f1fd..45bb500e8a1ee4f5888ce358135b4cb1cf1e4167 100644 (file)
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]);
+ }
+ }
+
}