Code

Updated sudo stuff.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Apr 2008 12:33:31 +0000 (12:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Apr 2008 12:33:31 +0000 (12:33 +0000)
-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
gosa-core/plugins/admin/sudo/remove.tpl

index ee3dfcf15a4c4d36d1a0c48af60fb8737234fa70..158f9e7f56cc18f6fb139cbc72dd856191dbaf22 100644 (file)
@@ -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");
     }
   }
 
index 80b656b49c2000ba352a5c9b3d22d5deea666909..65166c23a71af35968244d380e2b9567f6efa6f8 100644 (file)
 <p class="plugbottom">
 
   {if $multiple}
-  <input type=submit name="delete_multiple_sodus_confirm" value="{msgPool type=delButton}">
+  <input type=submit name="delete_multiple_sudos_confirmed" value="{msgPool type=delButton}">
   &nbsp;
-  <input type=submit name="delete_multiple_sodu_cancel" value="{msgPool type=cancelButton}">
+  <input type=submit name="delete_multiple_sudo_cancel" value="{msgPool type=cancelButton}">
   {else}
-  <input type=submit name="delete_sodu_confirm" value="{msgPool type=delButton}">
+  <input type=submit name="delete_sudo_confirmed" value="{msgPool type=delButton}">
   &nbsp;
   <input type=submit name="delete_cancel" value="{msgPool type=cancelButton}">
   {/if}