summaryrefslogtreecommitdiffstats
path: root/app/models/auth_source_ldap.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-17 12:19:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-17 12:19:01 +0000
commit7c5635f6c62bd69cc668e35665d08d175ef15e5f (patch)
treee29a55a7c7374d6992cfe11bc9c0f22f32262478 /app/models/auth_source_ldap.rb
parent77314ebe8fdd84d77b49d8e17ef79cd94ff9bf1b (diff)
downloadredmine-7c5635f6c62bd69cc668e35665d08d175ef15e5f.tar.gz
redmine-7c5635f6c62bd69cc668e35665d08d175ef15e5f.zip
Typo (#1913).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9243 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source_ldap.rb')
-rw-r--r--app/models/auth_source_ldap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index 59ad3f6b4..91942b282 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -119,7 +119,7 @@ class AuthSourceLdap < AuthSource
# Get the user's dn and any attributes for them, given their login
def get_user_dn(login, password)
ldap_con = nil
- if self.account && self.account.include?("login")
+ if self.account && self.account.include?("$login")
ldap_con = initialize_ldap_con(self.account.sub("$login", Net::LDAP::DN.escape(login)), password)
else
ldap_con = initialize_ldap_con(self.account, self.account_password)