Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Mathiesen <marius@gitorious.org>2012-07-20 07:42:38 (GMT)
committer Marius Mathiesen <marius@gitorious.org>2012-10-08 07:41:33 (GMT)
commita818baae22b16e11a758fe10e47b02932bf406f1 (patch)
tree9b953e2d7f96461f2ef4768fbfb204aba5be2194 /lib
parenta8bde89330d1a5f730a7174d2c4da8110c07b57b (diff)
Introducing support for using a different base DN when searching for groups
When using LDAP groups for authorization, we now support specifying a different DN when searching for groups. By default, the same base_dn as is used for authentication is used.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitorious/authentication/ldap_configurator.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitorious/authentication/ldap_configurator.rb b/lib/gitorious/authentication/ldap_configurator.rb
index 5a89917..3d77255 100644
--- a/lib/gitorious/authentication/ldap_configurator.rb
+++ b/lib/gitorious/authentication/ldap_configurator.rb
@@ -49,6 +49,10 @@ module Gitorious
def base_dn
options["base_dn"]
end
+
+ def group_search_dn
+ options.fetch("group_search_dn", base_dn)
+ end
def connection_type
@connection_type = options["connection_type"] || Net::LDAP