Project

General

Profile

Actions

Defect #3080

closed

LDAP connect

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
2009-03-31
Due date:
% Done:

0%

Estimated time:
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)

Actions #1

Updated by Jean-Philippe Lang over 15 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
Actions

Also available in: Atom PDF