%= 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 %>
<%= text_field 'auth_source', 'filter', :size => 60 %>
<%= check_box 'auth_source', 'onthefly_register' %>