Commit 8722d6bd authored by Jacob Vosmaer's avatar Jacob Vosmaer

Add an API reference for AD recursive LDAP lookup

parent ab37a095
...@@ -63,6 +63,8 @@ module Gitlab ...@@ -63,6 +63,8 @@ module Gitlab
private private
# We use the ActiveDirectory LDAP_MATCHING_RULE_IN_CHAIN matching rule; see
# http://msdn.microsoft.com/en-us/library/aa746475%28VS.85%29.aspx#code-snippet-5
def active_directory_recursive_memberof_filter def active_directory_recursive_memberof_filter
Net::LDAP::Filter.ex("memberOf:1.2.840.113556.1.4.1941", entry.dn) Net::LDAP::Filter.ex("memberOf:1.2.840.113556.1.4.1941", entry.dn)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment