Skip to content

Commit c2cdb52

Browse files
author
Dave Sims
committed
Add naming context to ForestSearch
1 parent 50af684 commit c2cdb52

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/github/ldap/forest_search.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
require 'github/ldap/instrumentation'
2+
13
module GitHub
24
class Ldap
5+
# For ActiveDirectory environments that have a forest with multiple domain controllers,
6+
# this strategy class allows for entry searches across all domains in that forest.
37
class ForestSearch
8+
include Instrumentation
49

5-
def initialize(connection)
10+
def initialize(connection, naming_context)
11+
@naming_context = naming_context
612
@connection = connection
713
@forest = get_domain_forest
814
end
@@ -26,7 +32,7 @@ def search(options, &block)
2632

2733
private
2834

29-
attr_reader :connection
35+
attr_reader :connection, :naming_context
3036

3137
# Internal: Queries configuration for available domains
3238
#

0 commit comments

Comments
 (0)