本站源代码
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.

80 lines
4.2KB

  1. <div class="ldap dldap field {{if not (or (eq .type 2) (eq .type 5))}}hide{{end}}">
  2. <div class="inline required field {{if .Err_SecurityProtocol}}error{{end}}">
  3. <label>{{.i18n.Tr "admin.auths.security_protocol"}}</label>
  4. <div class="ui selection security-protocol dropdown">
  5. <input type="hidden" id="security_protocol" name="security_protocol" value="{{.security_protocol}}">
  6. <div class="text">{{.CurrentSecurityProtocol}}</div>
  7. <i class="dropdown icon"></i>
  8. <div class="menu">
  9. {{range .SecurityProtocols}}
  10. <div class="item" data-value="{{.Type}}">{{.Name}}</div>
  11. {{end}}
  12. </div>
  13. </div>
  14. </div>
  15. <div class="required field">
  16. <label for="host">{{.i18n.Tr "admin.auths.host"}}</label>
  17. <input id="host" name="host" value="{{.host}}" placeholder="e.g. mydomain.com">
  18. </div>
  19. <div class="required field">
  20. <label for="port">{{.i18n.Tr "admin.auths.port"}}</label>
  21. <input id="port" name="port" value="{{.port}}" placeholder="e.g. 636">
  22. </div>
  23. <div class="ldap field {{if not (eq .type 2)}}hide{{end}}">
  24. <label for="bind_dn">{{.i18n.Tr "admin.auths.bind_dn"}}</label>
  25. <input id="bind_dn" name="bind_dn" value="{{.bind_dn}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com">
  26. </div>
  27. <input class="fake" type="password">
  28. <div class="ldap field {{if not (eq .type 2)}}hide{{end}}">
  29. <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label>
  30. <input id="bind_password" name="bind_password" type="password" value="{{.bind_password}}">
  31. <p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p>
  32. </div>
  33. <div class="binddnrequired {{if (eq .type 2)}}required{{end}} field">
  34. <label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
  35. <input id="user_base" name="user_base" value="{{.user_base}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com">
  36. </div>
  37. <div class="dldap required field {{if not (eq .type 5)}}hide{{end}}">
  38. <label for="user_dn">{{.i18n.Tr "admin.auths.user_dn"}}</label>
  39. <input id="user_dn" name="user_dn" value="{{.user_dn}}" placeholder="e.g. uid=%s,ou=Users,dc=mydomain,dc=com">
  40. </div>
  41. <div class="required field">
  42. <label for="filter">{{.i18n.Tr "admin.auths.filter"}}</label>
  43. <input id="filter" name="filter" value="{{.filter}}" placeholder="e.g. (&(objectClass=posixAccount)(uid=%s))">
  44. </div>
  45. <div class="field">
  46. <label for="admin_filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label>
  47. <input id="admin_filter" name="admin_filter" value="{{.admin_filter}}">
  48. </div>
  49. <div class="field">
  50. <label for="attribute_username">{{.i18n.Tr "admin.auths.attribute_username"}}</label>
  51. <input id="attribute_username" name="attribute_username" value="{{.attribute_username}}" placeholder="{{.i18n.Tr "admin.auths.attribute_username_placeholder"}}">
  52. </div>
  53. <div class="field">
  54. <label for="attribute_name">{{.i18n.Tr "admin.auths.attribute_name"}}</label>
  55. <input id="attribute_name" name="attribute_name" value="{{.attribute_name}}">
  56. </div>
  57. <div class="field">
  58. <label for="attribute_surname">{{.i18n.Tr "admin.auths.attribute_surname"}}</label>
  59. <input id="attribute_surname" name="attribute_surname" value="{{.attribute_surname}}">
  60. </div>
  61. <div class="required field">
  62. <label for="attribute_mail">{{.i18n.Tr "admin.auths.attribute_mail"}}</label>
  63. <input id="attribute_mail" name="attribute_mail" value="{{.attribute_mail}}" placeholder="e.g. mail">
  64. </div>
  65. <div class="field">
  66. <label for="attribute_ssh_public_key">{{.i18n.Tr "admin.auths.attribute_ssh_public_key"}}</label>
  67. <input id="attribute_ssh_public_key" name="attribute_ssh_public_key" value="{{.attribute_ssh_public_key}}" placeholder="e.g. SshPublicKey">
  68. </div>
  69. <div class="ldap inline field {{if not (eq .type 2)}}hide{{end}}">
  70. <div class="ui checkbox">
  71. <label for="use_paged_search"><strong>{{.i18n.Tr "admin.auths.use_paged_search"}}</strong></label>
  72. <input id="use_paged_search" name="use_paged_search" class="use-paged-search" type="checkbox" {{if .use_paged_search}}checked{{end}}>
  73. </div>
  74. </div>
  75. <div class="ldap field search-page-size required {{if or (not (eq .type 2)) (not .use_paged_search)}}hide{{end}}">
  76. <label for="search_page_size">{{.i18n.Tr "admin.auths.search_page_size"}}</label>
  77. <input id="search_page_size" name="search_page_size" value="{{.search_page_size}}">
  78. </div>
  79. </div>
上海开阖软件有限公司 沪ICP备12045867号-1