Fix LDAP authentication (#714, broken by r1194).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1199 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
533994e5ea
commit
482d9a4e82
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue