| 1 |
1 |
<%= error_messages_for 'auth_source' %>
|
| 2 |
2 |
|
| 3 |
|
<div class="box">
|
| 4 |
|
<!--[form:auth_source]-->
|
| 5 |
|
<p><label for="auth_source_name"><%=l(:field_name)%> <span class="required">*</span></label>
|
| 6 |
|
<%= text_field 'auth_source', 'name' %></p>
|
| 7 |
|
|
| 8 |
|
<p><label for="auth_source_host"><%=l(:field_host)%> <span class="required">*</span></label>
|
| 9 |
|
<%= text_field 'auth_source', 'host' %></p>
|
| 10 |
|
|
| 11 |
|
<p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label>
|
| 12 |
|
<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS</p>
|
| 13 |
|
|
| 14 |
|
<p><label for="auth_source_account"><%=l(:field_account)%></label>
|
| 15 |
|
<%= text_field 'auth_source', 'account' %></p>
|
| 16 |
|
|
| 17 |
|
<p><label for="auth_source_account_password"><%=l(:field_password)%></label>
|
| 18 |
|
<%= password_field 'auth_source', 'account_password', :name => 'ignore',
|
| 19 |
|
:value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
|
| 20 |
|
:onfocus => "this.value=''; this.name='auth_source[account_password]';",
|
| 21 |
|
:onchange => "this.name='auth_source[account_password]';" %></p>
|
| 22 |
|
|
| 23 |
|
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
|
| 24 |
|
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
|
| 25 |
|
|
| 26 |
|
<p><label for="auth_source_custom_filter"><%=l(:field_auth_source_ldap_filter)%></label>
|
| 27 |
|
<%= text_field 'auth_source', 'filter', :size => 60 %></p>
|
| 28 |
|
|
| 29 |
|
<p><label for="auth_source_timeout"><%=l(:field_timeout)%></label>
|
| 30 |
|
<%= text_field 'auth_source', 'timeout', :size => 4 %></p>
|
| 31 |
|
|
| 32 |
|
<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
|
| 33 |
|
<%= check_box 'auth_source', 'onthefly_register' %></p>
|
|
3 |
<div class="box tabular">
|
|
4 |
<p><%= f.text_field :name, :required => true %></p>
|
|
5 |
<p><%= f.text_field :host, :required => true %></p>
|
|
6 |
<p><%= f.text_field :port, :required => true, :size => 6 %> <%= f.check_box :tls, :no_label => true %> LDAPS</p>
|
|
7 |
<p><%= f.text_field :account %></p>
|
|
8 |
<p><%= f.password_field :account_password, :label => :field_password,
|
|
9 |
:name => 'dummy_password',
|
|
10 |
:value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
|
|
11 |
:onfocus => "this.value=''; this.name='auth_source[account_password]';",
|
|
12 |
:onchange => "this.name='auth_source[account_password]';" %></p>
|
|
13 |
<p><%= f.text_field :base_dn, :required => true, :size => 60 %></p>
|
|
14 |
<p><%= f.text_field :filter, :size => 60, :label => :field_auth_source_ldap_filter %></p>
|
|
15 |
<p><%= f.text_field :timeout, :size => 4 %></p>
|
|
16 |
<p><%= f.check_box :onthefly_register, :label => :field_onthefly %></p>
|
| 34 |
17 |
</div>
|
| 35 |
18 |
|
| 36 |
|
<fieldset class="box"><legend><%=l(:label_attribute_plural)%></legend>
|
| 37 |
|
<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
|
| 38 |
|
<%= text_field 'auth_source', 'attr_login', :size => 20 %></p>
|
| 39 |
|
|
| 40 |
|
<p><label for="auth_source_attr_firstname"><%=l(:field_firstname)%></label>
|
| 41 |
|
<%= text_field 'auth_source', 'attr_firstname', :size => 20 %></p>
|
| 42 |
|
|
| 43 |
|
<p><label for="auth_source_attr_lastname"><%=l(:field_lastname)%></label>
|
| 44 |
|
<%= text_field 'auth_source', 'attr_lastname', :size => 20 %></p>
|
| 45 |
|
|
| 46 |
|
<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
|
| 47 |
|
<%= text_field 'auth_source', 'attr_mail', :size => 20 %></p>
|
|
19 |
<fieldset class="box tabular"><legend><%=l(:label_attribute_plural)%></legend>
|
|
20 |
<p><%= f.text_field :attr_login, :required => true, :size => 20 %></p>
|
|
21 |
<p><%= f.text_field :attr_firstname, :size => 20 %></p>
|
|
22 |
<p><%= f.text_field :attr_lastname, :size => 20 %></p>
|
|
23 |
<p><%= f.text_field :attr_mail, :size => 20 %></p>
|
| 48 |
24 |
</fieldset>
|
| 49 |
|
<!--[eoform:auth_source]-->
|
| 50 |
|
|