Code

cleaning up
authorzeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 22 Mar 2008 17:58:28 +0000 (17:58 +0000)
committerzeph <zeph@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 22 Mar 2008 17:58:28 +0000 (17:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9958 594d385d-05f5-0310-b6e9-bd551577e9d8

sudo-ldap/src/class_sudoLdap.inc

index bf8f1e457ede266979e2a0f7b1a3c60e92efc038..c6d67893dc4e6706c98a4edc0b7042e80f268d4f 100644 (file)
@@ -17,11 +17,14 @@ class sudoLdap extends plugin
 
   /* Plugin specific values */
  
-  var $attributes     = array("sudoUser", "sudoHost", "sudoCommand", "sudoRunAs", "sudoOption");
+  var $attributes     = array( "sudoUser", 
+                                                               "sudoHost", 
+                                                               "sudoCommand", 
+                                                               "sudoRunAs", 
+                                                               "sudoOption");
+  
   var $objectclasses  = array("sudoRole");
-
-  var $uid ="";
-
+  
   /* constructor, if 'dn' is set, the node loads the given
      'dn' from LDAP */
   function sudoLdap ($config, $dn= NULL, $parent= NULL)
@@ -32,11 +35,6 @@ class sudoLdap extends plugin
     /* Load bases attributes */
     plugin::plugin($config, $dn, $parent);
 
-    /* set user id */    
-    if(isset($this->attrs['uid'])){
-      $this->uid = $this->attrs['uid'][0];
-    }
-
     $ldap= $this->config->get_ldap_link();
     
   }