File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Ldap
19
19
20
20
# Internal: The capability required to use ActiveDirectory features.
21
21
# See: http://msdn.microsoft.com/en-us/library/cc223359.aspx.
22
- ACTIVE_DIRECTORY_V61_R2_OID = "1.2.840.113556.1.4.2080 " . freeze
22
+ ACTIVE_DIRECTORY_V60_OID = "1.2.840.113556.1.4.1935 " . freeze
23
23
24
24
# Utility method to get the last operation result with a human friendly message.
25
25
#
@@ -313,7 +313,7 @@ def configure_member_search_strategy(strategy = nil)
313
313
#
314
314
# Returns true if the host is an ActiveDirectory server, false otherwise.
315
315
def active_directory_capability?
316
- capabilities [ :supportedcapabilities ] . include? ( ACTIVE_DIRECTORY_V61_R2_OID )
316
+ capabilities [ :supportedcapabilities ] . include? ( ACTIVE_DIRECTORY_V60_OID )
317
317
end
318
318
private :active_directory_capability?
319
319
end
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def test_search_strategy_defaults
80
80
81
81
def test_search_strategy_detects_active_directory
82
82
caps = Net ::LDAP ::Entry . new
83
- caps [ :supportedcapabilities ] = [ GitHub ::Ldap ::ACTIVE_DIRECTORY_V61_R2_OID ]
83
+ caps [ :supportedcapabilities ] = [ GitHub ::Ldap ::ACTIVE_DIRECTORY_V60_OID ]
84
84
85
85
@ldap . stub :capabilities , caps do
86
86
@ldap . configure_search_strategy :detect
You can’t perform that action at this time.
0 commit comments