@@ -70,7 +70,8 private | |||||
70 | def initialize_ldap_con(ldap_user, ldap_password) |
|
70 | def initialize_ldap_con(ldap_user, ldap_password) | |
71 | Net::LDAP.new( {:host => self.host, |
|
71 | Net::LDAP.new( {:host => self.host, | |
72 | :port => self.port, |
|
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 | end |
|
76 | end | |
76 |
|
77 |
@@ -9,7 +9,7 | |||||
9 | <%= text_field 'auth_source', 'host' %></p> |
|
9 | <%= text_field 'auth_source', 'host' %></p> | |
10 |
|
10 | |||
11 | <p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label> |
|
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 | <p><label for="auth_source_account"><%=l(:field_account)%></label> |
|
14 | <p><label for="auth_source_account"><%=l(:field_account)%></label> | |
15 | <%= text_field 'auth_source', 'account' %></p> |
|
15 | <%= text_field 'auth_source', 'account' %></p> |
General Comments 0
You need to be logged in to leave comments.
Login now