<%= error_messages_for 'auth_source' %>

<%= text_field 'auth_source', 'name' %>

<%= text_field 'auth_source', 'host' %>

<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls' %> LDAPS

<%= text_field 'auth_source', 'account' %>

<%= 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]';" %>

<%= text_field 'auth_source', 'base_dn', :size => 60 %>

<%= check_box 'auth_source', 'onthefly_register' %>

<%=l(:label_attribute_plural)%>

<%= text_field 'auth_source', 'attr_login', :size => 20 %>

<%= text_field 'auth_source', 'attr_firstname', :size => 20 %>

<%= text_field 'auth_source', 'attr_lastname', :size => 20 %>

<%= text_field 'auth_source', 'attr_mail', :size => 20 %>