@@ -70,7 +70,8 private | |||
|
70 | 70 | def initialize_ldap_con(ldap_user, ldap_password) |
|
71 | 71 | Net::LDAP.new( {:host => self.host, |
|
72 | 72 | :port => self.port, |
|
73 |
:auth => { :method => :simple, :username => ldap_user, :password => ldap_password } |
|
|
73 | :auth => { :method => :simple, :username => ldap_user, :password => ldap_password }, | |
|
74 | :encryption => (self.tls ? :simple_tls : nil)} | |
|
74 | 75 | ) |
|
75 | 76 | end |
|
76 | 77 |
@@ -9,7 +9,7 | |||
|
9 | 9 | <%= text_field 'auth_source', 'host' %></p> |
|
10 | 10 | |
|
11 | 11 | <p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label> |
|
12 | <%= text_field 'auth_source', 'port', :size => 6 %></p> | |
|
12 | <%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS</p> | |
|
13 | 13 | |
|
14 | 14 | <p><label for="auth_source_account"><%=l(:field_account)%></label> |
|
15 | 15 | <%= text_field 'auth_source', 'account' %></p> |
General Comments 0
You need to be logged in to leave comments.
Login now