Author: Nathan.Vonnahme
Date: 2010-02-04 02:35:13 +0100 (Thu, 04 Feb 2010)
New Revision: 27533

Modified:
   plugins/bhLDAPAuthPlugin/branches/1.1/lib/bhLDAP.php
Log:
cleanup

Modified: plugins/bhLDAPAuthPlugin/branches/1.1/lib/bhLDAP.php
===================================================================
--- plugins/bhLDAPAuthPlugin/branches/1.1/lib/bhLDAP.php        2010-02-04 
01:33:46 UTC (rev 27532)
+++ plugins/bhLDAPAuthPlugin/branches/1.1/lib/bhLDAP.php        2010-02-04 
01:35:13 UTC (rev 27533)
@@ -166,56 +166,6 @@
   }
 
 
-
-
-  // this version hacked by ben
-  public static function XXXXXXrecursive_groups($group){
-    if ($group===NULL){ return (false); }
-
-    $ret_groups=Array($group);
-    $new_groups=Array($group);
-
-    $ldap = self::getLDAP();
-
-
- #   $i = 0;
-    while(count($new_groups)>0) { // The list of groups that need to be 
checked for membership
-      self::debugDump($ret_groups, "ret_groups");
-      self::debugDump($new_groups, "descending into these new groups");
-
-      self::debug("FOREACHING new_groups");
-      $more_groups=Array();
-
-#      if ($i++ == 2) break;
-      foreach ($new_groups as $group_name) {
-       self::debug("HELLOWORLD $group_name");
-       $grou...@$ldap->group_info($group_name,array("memberof")); // Get 
groups this group is a member of
-       self::debugDump($groups, "groups returned by group_info");
-
-       if (array_key_exists("memberof", $groups[0])) {
-         $groups=$groups[0]["memberof"];
-         if ($groups){
-           $group_names=$ldap->nice_names($groups);
-           $more_groups=array_unique(array_merge($more_groups,$group_names)); 
//final groups to return
-         }
-       }
-
-      }
-      $ret_groups = array_unique(array_merge($ret_groups,$more_groups)); // 
Add the groups to the main list
-      self::debug("diffing these:");
-      self::debugDump($more_groups, "more_groups");
-      self::debugDump($ret_groups, "ret_groups");
-      $new_groups=array_diff($more_groups,$ret_groups);
-    }
-    self::debugDump($ret_groups, "REETURENUIVFYING this ret_groups");
-    return ($ret_groups);
-  }
-
-
-
-
-
-
 }
 
 //sfeof

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to