user-storage-kerberos.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/user-federation">{{:: 'user-federation' | translate}}</a></li>
  4. <li data-ng-hide="create">{{instance.name|capitalize}}</li>
  5. <li data-ng-show="create">{{:: 'add-user-storage-provider' | translate}}</li>
  6. </ol>
  7. <kc-tabs-user-storage></kc-tabs-user-storage>
  8. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
  9. <fieldset>
  10. <legend><span class="text">{{:: 'required-settings' | translate}}</span></legend>
  11. <div class="form-group clearfix" data-ng-show="!create">
  12. <label class="col-md-2 control-label" for="providerId">{{:: 'provider-id' | translate}} </label>
  13. <div class="col-md-6">
  14. <input class="form-control" id="providerId" type="text" ng-model="instance.id" readonly>
  15. </div>
  16. </div>
  17. <div class="form-group clearfix block">
  18. <label class="col-md-2 control-label" for="enabled">{{:: 'enabled' | translate}}</label>
  19. <div class="col-md-6">
  20. <input ng-model="instance.config['enabled'][0]" name="enabled" id="enabled" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  21. </div>
  22. <kc-tooltip>{{:: 'user-storage.enabled.tooltip' | translate}}</kc-tooltip>
  23. </div>
  24. <div class="form-group clearfix">
  25. <label class="col-md-2 control-label" for="consoleDisplayName">{{:: 'console-display-name' | translate}} </label>
  26. <div class="col-md-6">
  27. <input class="form-control" id="consoleDisplayName" type="text" ng-model="instance.name" placeholder="{{:: 'defaults-to-id' | translate}}">
  28. </div>
  29. <kc-tooltip>{{:: 'console-display-name.tooltip' | translate}}</kc-tooltip>
  30. </div>
  31. <div class="form-group clearfix">
  32. <label class="col-md-2 control-label" for="priority">{{:: 'priority' | translate}} </label>
  33. <div class="col-md-6">
  34. <input class="form-control" id="priority" type="text" ng-model="instance.config['priority'][0]">
  35. </div>
  36. <kc-tooltip>{{:: 'priority.tooltip' | translate}}</kc-tooltip>
  37. </div>
  38. <div class="form-group clearfix">
  39. <label class="col-md-2 control-label" for="kerberosRealm"><span class="required">*</span> {{:: 'kerberos-realm' | translate}}</label>
  40. <div class="col-md-6">
  41. <input class="form-control" id="kerberosRealm" type="text" ng-model="instance.config['kerberosRealm'][0]" required>
  42. </div>
  43. <kc-tooltip>{{:: 'kerberos-realm.tooltip' | translate}}</kc-tooltip>
  44. </div>
  45. <div class="form-group clearfix">
  46. <label class="col-md-2 control-label" for="serverPrincipal"><span class="required">*</span> {{:: 'server-principal' | translate}}</label>
  47. <div class="col-md-6">
  48. <input class="form-control" id="serverPrincipal" type="text" ng-model="instance.config['serverPrincipal'][0]" required>
  49. </div>
  50. <kc-tooltip>{{:: 'server-principal.tooltip' | translate}}</kc-tooltip>
  51. </div>
  52. <div class="form-group clearfix">
  53. <label class="col-md-2 control-label" for="keyTab"><span class="required">*</span> {{:: 'keytab' | translate}}</label>
  54. <div class="col-md-6">
  55. <input class="form-control" id="keyTab" type="text" ng-model="instance.config['keyTab'][0]" required>
  56. </div>
  57. <kc-tooltip>{{:: 'keytab.tooltip' | translate}}</kc-tooltip>
  58. </div>
  59. <div class="form-group">
  60. <label class="col-md-2 control-label" for="debug">{{:: 'debug' | translate}} </label>
  61. <div class="col-md-6">
  62. <input ng-model="instance.config['debug'][0]" id="debug" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  63. </div>
  64. <kc-tooltip>{{:: 'debug.tooltip' | translate}}</kc-tooltip>
  65. </div>
  66. <div class="form-group">
  67. <label class="col-md-2 control-label" for="allowPasswordAuthentication">{{:: 'allow-password-authentication' | translate}} </label>
  68. <div class="col-md-6">
  69. <input ng-model="instance.config['allowPasswordAuthentication'][0]" id="allowPasswordAuthentication" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  70. </div>
  71. <kc-tooltip>{{:: 'allow-password-authentication.tooltip' | translate}}</kc-tooltip>
  72. </div>
  73. <div class="form-group" data-ng-show="instance.config['allowPasswordAuthentication'][0] == 'true'">
  74. <label class="col-md-2 control-label" for="editMode">{{:: 'edit-mode' | translate}}</label>
  75. <div class="col-md-6">
  76. <div>
  77. <select class="form-control" id="editMode"
  78. ng-model="instance.config['editMode'][0]">
  79. <option>READ_ONLY</option>
  80. <option>UNSYNCED</option>
  81. </select>
  82. </div>
  83. </div>
  84. <kc-tooltip>{{:: 'edit-mode.tooltip' | translate}}</kc-tooltip>
  85. </div>
  86. <div class="form-group">
  87. <label class="col-md-2 control-label" for="updateProfileFirstLogin">{{:: 'update-profile-first-login' | translate}} </label>
  88. <div class="col-md-6">
  89. <input ng-model="instance.config['updateProfileFirstLogin'][0]" id="updateProfileFirstLogin" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  90. </div>
  91. <kc-tooltip>{{:: 'update-profile-first-login.tooltip' | translate}}</kc-tooltip>
  92. </div>
  93. </fieldset>
  94. <fieldset>
  95. <legend><span class="text">{{:: 'user-storage-cache-policy' | translate}}</span></legend>
  96. <div class="form-group">
  97. <label for="cachePolicy" class="col-md-2 control-label">{{:: 'userStorage.cachePolicy' | translate}}</label>
  98. <div class="col-md-2">
  99. <div>
  100. <select id="cachePolicy" ng-model="instance.config['cachePolicy'][0]" class="form-control">
  101. <option value="DEFAULT">{{:: 'userStorage.cachePolicy.option.DEFAULT' | translate}}</option>
  102. <option value="EVICT_DAILY">{{:: 'userStorage.cachePolicy.option.EVICT_DAILY' | translate}}</option>
  103. <option value="EVICT_WEEKLY">{{:: 'userStorage.cachePolicy.option.EVICT_WEEKLY' | translate}}</option>
  104. <option value="MAX_LIFESPAN">{{:: 'userStorage.cachePolicy.option.MAX_LIFESPAN' | translate}}</option>
  105. <option value="NO_CACHE">{{:: 'userStorage.cachePolicy.option.NO_CACHE' | translate}}</option>
  106. </select>
  107. </div>
  108. </div>
  109. <kc-tooltip>{{:: 'userStorage.cachePolicy.tooltip' | translate}}</kc-tooltip>
  110. </div>
  111. <div class="form-group" data-ng-show="instance.config['cachePolicy'][0] == 'EVICT_WEEKLY'">
  112. <label for="evictionDay" class="col-md-2 control-label">{{:: 'userStorage.cachePolicy.evictionDay' | translate}}</label>
  113. <div class="col-md-2">
  114. <div>
  115. <select id="evictionDay" ng-model="instance.config['evictionDay'][0]" class="form-control">
  116. <option value="1">{{:: 'Sunday' | translate}}</option>
  117. <option value="2">{{:: 'Monday' | translate}}</option>
  118. <option value="3">{{:: 'Tuesday' | translate}}</option>
  119. <option value="4">{{:: 'Wednesday' | translate}}</option>
  120. <option value="5">{{:: 'Thursday' | translate}}</option>
  121. <option value="6">{{:: 'Friday' | translate}}</option>
  122. <option value="7">{{:: 'Saturday' | translate}}</option>
  123. </select>
  124. </div>
  125. </div>
  126. <kc-tooltip>{{:: 'userStorage.cachePolicy.evictionDay.tooltip' | translate}}</kc-tooltip>
  127. </div>
  128. <div class="form-group clearfix" data-ng-show="instance.config['cachePolicy'][0] == 'EVICT_WEEKLY' || instance.config['cachePolicy'][0] == 'EVICT_DAILY'">
  129. <label class="col-md-2 control-label" for="evictionHour">{{:: 'userStorage.cachePolicy.evictionHour' | translate}}</label>
  130. <div class="col-md-2">
  131. <div>
  132. <select id="evictionHour" ng-model="instance.config['evictionHour'][0]" class="form-control">
  133. <option value="0">00</option>
  134. <option value="1">01</option>
  135. <option value="2">02</option>
  136. <option value="3">03</option>
  137. <option value="4">04</option>
  138. <option value="5">05</option>
  139. <option value="6">06</option>
  140. <option value="7">07</option>
  141. <option value="8">08</option>
  142. <option value="9">09</option>
  143. <option value="10">10</option>
  144. <option value="11">11</option>
  145. <option value="12">12</option>
  146. <option value="13">13</option>
  147. <option value="14">14</option>
  148. <option value="15">15</option>
  149. <option value="16">16</option>
  150. <option value="17">17</option>
  151. <option value="18">18</option>
  152. <option value="19">19</option>
  153. <option value="20">20</option>
  154. <option value="21">21</option>
  155. <option value="22">22</option>
  156. <option value="23">23</option>
  157. </select>
  158. </div>
  159. </div>
  160. <kc-tooltip>{{:: 'userStorage.cachePolicy.evictionHour.tooltip' | translate}}</kc-tooltip>
  161. </div>
  162. <div class="form-group clearfix" data-ng-show="instance.config['cachePolicy'][0] == 'EVICT_WEEKLY' || instance.config['cachePolicy'][0] == 'EVICT_DAILY'">
  163. <label class="col-md-2 control-label" for="evictionMinute">{{:: 'userStorage.cachePolicy.evictionMinute' | translate}}</label>
  164. <div class="col-md-2">
  165. <div>
  166. <select id="evictionMinute" ng-model="instance.config['evictionMinute'][0]" class="form-control">
  167. <option value="0">00</option>
  168. <option value="1">01</option>
  169. <option value="2">02</option>
  170. <option value="3">03</option>
  171. <option value="4">04</option>
  172. <option value="5">05</option>
  173. <option value="6">06</option>
  174. <option value="7">07</option>
  175. <option value="8">08</option>
  176. <option value="9">09</option>
  177. <option value="10">10</option>
  178. <option value="11">11</option>
  179. <option value="12">12</option>
  180. <option value="13">13</option>
  181. <option value="14">14</option>
  182. <option value="15">15</option>
  183. <option value="16">16</option>
  184. <option value="17">17</option>
  185. <option value="18">18</option>
  186. <option value="19">19</option>
  187. <option value="20">20</option>
  188. <option value="21">21</option>
  189. <option value="22">22</option>
  190. <option value="23">23</option>
  191. <option value="24">24</option>
  192. <option value="25">25</option>
  193. <option value="26">26</option>
  194. <option value="27">27</option>
  195. <option value="28">28</option>
  196. <option value="29">29</option>
  197. <option value="30">30</option>
  198. <option value="31">31</option>
  199. <option value="32">32</option>
  200. <option value="33">33</option>
  201. <option value="34">34</option>
  202. <option value="35">35</option>
  203. <option value="36">36</option>
  204. <option value="37">37</option>
  205. <option value="38">38</option>
  206. <option value="39">39</option>
  207. <option value="40">40</option>
  208. <option value="41">41</option>
  209. <option value="42">42</option>
  210. <option value="43">43</option>
  211. <option value="44">44</option>
  212. <option value="45">45</option>
  213. <option value="46">46</option>
  214. <option value="47">47</option>
  215. <option value="48">48</option>
  216. <option value="49">49</option>
  217. <option value="50">50</option>
  218. <option value="51">51</option>
  219. <option value="52">52</option>
  220. <option value="53">53</option>
  221. <option value="54">54</option>
  222. <option value="55">55</option>
  223. <option value="56">56</option>
  224. <option value="57">57</option>
  225. <option value="58">58</option>
  226. <option value="59">59</option>
  227. </select>
  228. </div>
  229. </div>
  230. <kc-tooltip>{{:: 'userStorage.cachePolicy.evictionMinute.tooltip' | translate}}</kc-tooltip>
  231. </div>
  232. <div class="form-group clearfix" data-ng-show="instance.config['cachePolicy'][0] == 'MAX_LIFESPAN'">
  233. <label class="col-md-2 control-label" for="maxLifespan">{{:: 'userStorage.cachePolicy.maxLifespan' | translate}}</label>
  234. <div class="col-md-6">
  235. <input class="form-control" type="text" ng-model="instance.config['maxLifespan'][0]" id="maxLifespan" />
  236. </div>
  237. <kc-tooltip>{{:: 'userStorage.cachePolicy.maxLifespan.tooltip' | translate}}</kc-tooltip>
  238. </div>
  239. </fieldset>
  240. <div class="form-group">
  241. <div class="col-md-10 col-md-offset-2" data-ng-show="create && access.manageRealm">
  242. <button kc-save>{{:: 'save' | translate}}</button>
  243. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  244. </div>
  245. </div>
  246. <div class="form-group">
  247. <div class="col-md-10 col-md-offset-2" data-ng-show="!create && access.manageRealm">
  248. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  249. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  250. </div>
  251. </div>
  252. </form>
  253. </div>
  254. <kc-menu></kc-menu>