authentication.hbs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. {{view App.FormFieldTemplate fieldBinding="view.form.field.method" id="user-auth-method"}}
  19. {{#if view.ldapChecked}}
  20. {{view App.FormFieldTemplate fieldBinding="view.form.field.primaryServer"}}
  21. {{view App.FormFieldTemplate fieldBinding="view.form.field.secondaryServer"}}
  22. {{view App.FormFieldTemplate fieldBinding="view.form.field.useSsl"}}
  23. {{view App.FormFieldTemplate fieldBinding="view.form.field.bindMethod"}}
  24. {{#if view.useCredentials}}
  25. {{view App.FormFieldTemplate fieldBinding="view.form.field.bindUser"}}
  26. {{view App.FormFieldTemplate fieldBinding="view.form.field.password"}}
  27. {{view App.FormFieldTemplate fieldBinding="view.form.field.passwordRetype"}}
  28. {{/if}}
  29. {{view App.FormFieldTemplate fieldBinding="view.form.field.searchBaseDn"}}
  30. {{view App.FormFieldTemplate fieldBinding="view.form.field.usernameAttribute"}}
  31. <h5>{{t admin.authentication.form.configurationTest}}</h5>
  32. {{view App.FormFieldTemplate fieldBinding="view.form.field.userDN"}}
  33. {{view App.FormFieldTemplate fieldBinding="view.form.field.userPassword"}}
  34. <button {{action testConfiguration on="click" target="view.form" }} class="btn">{{t admin.authentication.form.testConfiguration}}</button>
  35. {{#if view.form.testConfigurationMessage}}
  36. <p {{bindAttr class="view.form.testConfigurationClass"}}>{{view.form.testConfigurationMessage}}</p>
  37. {{/if}}
  38. {{/if}}
  39. <div style="margin:40px 0">
  40. <button {{action updateValues target="view.form"}} class="btn">{{t form.cancel}}</button>
  41. <button {{action save view.form target="App.router.mainAdminAuthenticationController"}} class="btn btn-primary">{{t form.save}}</button>
  42. </div>