Commit 944d9eee authored by Marin Jankovski's avatar Marin Jankovski

Do AD check if AD is enabled.

parent 37169e54
......@@ -38,7 +38,9 @@ module Gitlab
elsif member_dns.include?(user.dn)
true
else
adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
if Gitlab.config.ldap.active_directory
adapter.dn_matches_filter?(user.dn, active_directory_recursive_memberof_filter)
end
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