Defect #3080

LDAP connect

Added by Szabolcs Klement over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:2009-03-31
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Accounts / authentication
Target version:-
Resolution:Invalid Affected version:

Description

i think in the file app/models/auth_source_ldap.rb the following line is bad:
options = { :host => self.host,
:port => self.port,
:encryption => (self.tls ? :simple_tls : nil)
}
this is always return for encryption=simple_tls while self.tls is 0 or 1 not nil
the connection always use tls.
i modify the this for:
:encryption => (self.tls==1 ? :simple_tls : nil)

History

#1 Updated by Jean-Philippe Lang over 10 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

self.tls is 0 or 1 not nil

It is 0 or 1 in the database, but:

>> a = AuthSourceLdap.new
>> a.tls
=> false
>> a.tls = '1'
=> "1" 
>> a.tls
=> true

Also available in: Atom PDF