From 7c5635f6c62bd69cc668e35665d08d175ef15e5f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 17 Mar 2012 12:19:01 +0000 Subject: [PATCH] Typo (#1913). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9243 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/auth_source_ldap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)