diff options
author | Marius Mathiesen <marius@gitorious.org> | 2012-07-19 10:35:59 (GMT) |
---|---|---|
committer | Marius Mathiesen <marius@gitorious.org> | 2012-10-08 07:41:33 (GMT) |
commit | a8bde89330d1a5f730a7174d2c4da8110c07b57b (patch) | |
tree | 507a3cc8a83065d5ed81cf343a3fd6269f78dd68 /lib/gitorious | |
parent | 235468105f734c210d4174e49b1ba84f818b0e03 (diff) |
Having build_username private made test_ldap_connection give an error on invalid password
Diffstat (limited to 'lib/gitorious')
-rw-r--r-- | lib/gitorious/authentication/ldap_authentication.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/gitorious/authentication/ldap_authentication.rb b/lib/gitorious/authentication/ldap_authentication.rb index 6725f31..7767d08 100644 --- a/lib/gitorious/authentication/ldap_authentication.rb +++ b/lib/gitorious/authentication/ldap_authentication.rb @@ -141,16 +141,15 @@ module Gitorious end end + def build_username(login) + distinguished_name_template.sub("{}", login) + end + private def username_filter(username) Net::LDAP::Filter.eq(login_attribute, username) end - - - def build_username(login) - distinguished_name_template.sub("{}", login) - end end end end |