You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.rhtml 2.2KB

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