]> source.dussan.org Git - redmine.git/commitdiff
Fix LDAP authentication (#714, broken by r1194).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 6 Mar 2008 17:22:21 +0000 (17:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 6 Mar 2008 17:22:21 +0000 (17:22 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1199 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/auth_source_ldap.rb

index b4966c1e826bbe07453e9838e4d9de2bf8ab3fed..a438bd3c7ba9165be384de6421d752b2d89df117 100644 (file)
@@ -74,7 +74,7 @@ private
                 :port => self.port,
                 :encryption => (self.tls ? :simple_tls : nil)
               }
-    options.merge(:auth => { :method => :simple, :username => ldap_user, :password => ldap_password }) unless ldap_user.blank? && ldap_password.blank?
+    options.merge!(:auth => { :method => :simple, :username => ldap_user, :password => ldap_password }) unless ldap_user.blank? && ldap_password.blank?
     Net::LDAP.new options
   end