2006-07-29 13:32:58 +04:00
|
|
|
<%= error_messages_for 'auth_source' %>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<!--[form:auth_source]-->
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_name"><%=l(:field_name)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'name' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_host"><%=l(:field_host)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'host' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label>
|
2007-10-16 23:09:21 +04:00
|
|
|
<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS</p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_account"><%=l(:field_account)%></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'account' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_account_password"><%=l(:field_password)%></label>
|
2007-12-02 01:03:45 +03:00
|
|
|
<%= password_field 'auth_source', 'account_password', :name => 'ignore',
|
|
|
|
:value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
|
|
|
|
:onfocus => "this.value=''; this.name='auth_source[account_password]';",
|
|
|
|
:onchange => "this.name='auth_source[account_password]';" %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
|
|
|
|
<%= check_box 'auth_source', 'onthefly_register' %></p>
|
2010-02-17 04:59:50 +03:00
|
|
|
|
2011-12-12 19:46:55 +04:00
|
|
|
<p><label for="auth_source_custom_filter"><%=l(:field_custom_filter)%></label>
|
2010-02-17 04:59:50 +03:00
|
|
|
<%= text_field 'auth_source', 'custom_filter', :size => 60 %></p>
|
2008-07-19 14:47:19 +04:00
|
|
|
</div>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2008-07-19 14:47:19 +04:00
|
|
|
<fieldset class="box"><legend><%=l(:label_attribute_plural)%></legend>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'attr_login', :size => 20 %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_attr_firstname"><%=l(:field_firstname)%></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'attr_firstname', :size => 20 %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_attr_lastname"><%=l(:field_lastname)%></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'attr_lastname', :size => 20 %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'auth_source', 'attr_mail', :size => 20 %></p>
|
|
|
|
</fieldset>
|
2006-09-02 17:33:23 +04:00
|
|
|
<!--[eoform:auth_source]-->
|
|
|
|
|