Code

Updated su management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Dec 2009 14:15:15 +0000 (14:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Dec 2009 14:15:15 +0000 (14:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14925 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc
gosa-plugins/sudo/admin/sudo/sudo-filter.xml
gosa-plugins/sudo/admin/sudo/sudo-list.tpl

index 22933a0ec9feb37ddf2a095c236b84f9498c57c7..ce19004e7b12f2c6f5d80c2beb37278859d83deb 100644 (file)
@@ -41,7 +41,7 @@ class sudoManagement extends management
     $this->storagePoints = array(get_ou("sudoRDN"));
  
     // Build filter
-    if (session::global_is_set(get_class($this)."_filter")){
+    if (0 && session::global_is_set(get_class($this)."_filter")){
       $filter= session::global_get(get_class($this)."_filter");
     } else {
       $filter = new filter(get_template_path("sudo-filter.xml", true));
index 02e1cbc60c36843d257cb9b066b4df24d6fefd70..43f7ee850e03d47bd2d0e11d21c79692016440d5 100644 (file)
@@ -34,6 +34,7 @@
       <backend>LDAP</backend>
       <filter>(&amp;(objectClass=sudoRole)(|(cn=*$NAME*)(description=*$NAME*)))</filter>
       <attribute>cn</attribute>
+      <attribute>description</attribute>
       <frequency>0.5</frequency>
       <characters>3</characters>
     </autocomplete>
@@ -51,7 +52,8 @@
     <autocomplete>
       <backend>LDAP</backend>
       <filter>(&amp;(objectClass=sudoRole)(|(sudoHost=*$USER*)(sudoUser=*$USER*)))</filter>
-      <attribute>cn</attribute>
+      <attribute>sudoHost</attribute>
+      <attribute>sudoUser</attribute>
       <frequency>0.5</frequency>
       <characters>3</characters>
     </autocomplete>
index b233c5874c0a4d5101b80258c2d6c3e5687d5be6..0b2cc7960d8217345b20541c36a612f2f11cacce 100644 (file)
@@ -10,7 +10,7 @@
       <div class="contentboxb">
        <div style='background:white;padding:0px;padding:3px;'>
         <table><tr>
-          <td>{$ROOT}&nbsp;</td><td>{$BACK}&nbsp;</td><td>{$HOME}&nbsp;</td><td>{$RELOAD}&nbsp;</td><td>{$SEPARATOR}&nbsp;</td><td>{t}Base{/t} {$BASE}&nbsp;<input class='center' type='image' src='images/lists/submit.png' align='middle' title='{t}Update{/t}' name='submit_department' alt='{t}Submit{/t}'>&nbsp;</td><td>{$SEPARATOR}&nbsp;</td><td><img src='images/rocket.png' alt='' class='center'></td><td> {$ACTIONS}</td>
+          <td>{$ROOT}&nbsp;</td><td>{$BACK}&nbsp;</td><td>{$HOME}&nbsp;</td><td>{$RELOAD}&nbsp;</td><td>{$SEPARATOR}&nbsp;</td><td><img src='images/rocket.png' alt='' class='center'></td><td> {$ACTIONS}</td>
         </tr></table>
        </div>
       </div>