Code

sudo-ldap deleting...
authorzeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Mar 2008 17:49:30 +0000 (17:49 +0000)
committerzeph <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

index 3354163738b700827cc9019c4622672acee6f1fd..45bb500e8a1ee4f5888ce358135b4cb1cf1e4167 100644 (file)
@@ -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]);
+       }
+  }
+
 
 }