kerberos.hbs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. {{#if dataIsLoaded}}
  19. {{#if securityEnabled}}
  20. <div>
  21. <p class="text-success">{{t admin.security.enabled}}
  22. {{#isAccessible ADMIN}}
  23. <button class="btn btn-padding btn-warning admin-disable-security-btn" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action notifySecurityOffPopup target="controller"}}>{{t admin.kerberos.button.disable}} </button>
  24. {{#unless isManualKerberos}}
  25. <button class="btn btn-success" id="regenerate-keytabs" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action regenerateKeytabs target="controller"}}>
  26. <i class="icon-repeat"></i> {{t admin.kerberos.button.regenerateKeytabs}}</button>
  27. {{#if App.supports.storeKDCCredentials}}
  28. <button class="btn btn-primary" {{action showManageKDCCredentialsPopup target="controller"}}>{{t admin.kerberos.credentials.store.menu.label}}</button>
  29. {{/if}}
  30. {{/unless}}
  31. <br/>
  32. {{#unless isEditMode}}
  33. <a {{action makeConfigsEditable target="controller"}}
  34. class="pull-right edit-link">
  35. {{t common.edit}}
  36. </a>
  37. {{/unless}}
  38. {{/isAccessible}}
  39. </p>
  40. </div>
  41. <div id="serviceConfig">
  42. {{view App.ServicesConfigView}}
  43. </div>
  44. {{#if isEditMode}}
  45. <div class="btn-area pull-right">
  46. <button id="cancel-kerberos-reconfigure-identities" {{action makeConfigsUneditable target="controller"}}
  47. class="btn">{{t common.cancel}}</button>
  48. <button id="save-kerberos-reconfigure-identities"
  49. class="btn btn-success" {{bindAttr disabled="isSaveButtonDisabled"}}
  50. {{action submit target="controller"}}>{{t common.save}}</button>
  51. </div>
  52. {{/if}}
  53. {{else}}
  54. <div>
  55. <p class="muted background-text">{{t admin.security.disabled}}
  56. {{#isAccessible ADMIN}}
  57. <a class="btn btn-padding btn-success admin-enable-security-btn" {{action checkAndStartKerberosWizard target="controller"}}>{{t admin.kerberos.button.enable}} </a>
  58. <br/>
  59. {{/isAccessible}}
  60. </p>
  61. </div>
  62. {{/if}}
  63. {{else}}
  64. <div class="spinner"></div>
  65. {{/if}}