We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4bd2c commit 909da53Copy full SHA for 909da53
lib/github/ldap/member_search/recursive.rb
@@ -34,9 +34,11 @@ def initialize(ldap, options = {})
34
#
35
# Returns Array of Net::LDAP::Entry objects.
36
def perform(group)
37
- found = Hash.new
+ # track groups found
38
+ found = Hash.new
39
+
40
+ # track DNs searched for (so we don't repeat searches)
41
searched = []
- entries = []
42
43
# if this is a posixGroup, return members immediately (no nesting)
44
uids = member_uids(group)
@@ -89,6 +91,9 @@ def perform(group)
89
91
end
90
92
93
94
+ # entries to return
95
+ entries = []
96
97
# pull member DNs, discarding dupes and subgroup DNs
98
member_dns = found.values.each_with_object([]) do |group, member_dns|
99
entries << group
0 commit comments