part.wizard-server.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <fieldset id="ldapWizard1">
  2. <p>
  3. <select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
  4. <?php
  5. $i = 1;
  6. $sel = ' selected';
  7. foreach ($_['serverConfigurationPrefixes'] as $prefix) {
  8. ?>
  9. <option value="<?php p($prefix); ?>"<?php p($sel);
  10. $sel = ''; ?>><?php p($l->t('%s. Server:', [$i++])); ?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
  11. <?php
  12. }
  13. ?>
  14. </select>
  15. <button type="button" id="ldap_action_add_configuration"
  16. aria-describedby="ldap_action_add_configuration_instructions"
  17. name="ldap_action_add_configuration" class="icon-add icon-default-style"
  18. title="<?php p($l->t('Add a new configuration'));?>">&nbsp;</button>
  19. <p class="hidden-visually" id="ldap_action_add_configuration_instructions">
  20. <?php p($l->t('Add a new configuration'));?>
  21. </p>
  22. <button type="button" id="ldap_action_copy_configuration"
  23. name="ldap_action_copy_configuration"
  24. aria-describedby="ldap_action_copy_configuration_instructions"
  25. class="ldapIconCopy icon-default-style"
  26. title="<?php p($l->t('Copy current configuration into new directory binding'));?>">&nbsp;</button>
  27. <p class="hidden-visually" id="ldap_action_copy_configuration_instructions">
  28. <?php p($l->t('Copy current configuration into new directory binding'));?>
  29. </p>
  30. <button type="button" id="ldap_action_delete_configuration"
  31. aria-describedby="ldap_action_delete_configuration_instructions"
  32. name="ldap_action_delete_configuration" class="icon-delete icon-default-style"
  33. title="<?php p($l->t('Delete the current configuration'));?>">&nbsp;</button>
  34. <p class="hidden-visually" id="ldap_action_delete_configuration_instructions">
  35. <?php p($l->t('Delete the current configuration'));?>
  36. </p>
  37. </p>
  38. <div class="hostPortCombinator">
  39. <div class="tablerow">
  40. <div class="tablecell">
  41. <div class="table">
  42. <input type="text" class="host" id="ldap_host"
  43. name="ldap_host"
  44. aria-describedby="ldap_host_instructions"
  45. placeholder="<?php p($l->t('Host'));?>"
  46. title="<?php p($l->t('You can omit the protocol, unless you require SSL. If so, start with ldaps://'));?>"
  47. />
  48. <p class="hidden-visually" id="ldap_host_instructions">
  49. <?php p($l->t('You can omit the protocol, unless you require SSL. If so, start with ldaps://'));?>
  50. </p>
  51. <span class="hostPortCombinatorSpan">
  52. <input type="number" id="ldap_port" name="ldap_port"
  53. placeholder="<?php p($l->t('Port'));?>" />
  54. <button class="ldapDetectPort" name="ldapDetectPort" type="button">
  55. <?php p($l->t('Detect Port'));?>
  56. </button>
  57. </span>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="tablerow">&nbsp;</div>
  62. <div class="tablerow">
  63. <input type="text" id="ldap_dn" name="ldap_dn"
  64. class="tablecell"
  65. aria-describedby="ldap_dn_instructions"
  66. placeholder="<?php p($l->t('User DN'));?>" autocomplete="off"
  67. title="<?php p($l->t('The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.'));?>"
  68. />
  69. <p class="hidden-visually" id="ldap_dn_instructions">
  70. <?php p($l->t('The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.'));?>
  71. </p>
  72. </div>
  73. <div class="tablerow">
  74. <input type="password" id="ldap_agent_password"
  75. class="tablecell" name="ldap_agent_password"
  76. aria-describedby="ldap_agent_password_instructions"
  77. placeholder="<?php p($l->t('Password'));?>" autocomplete="off"
  78. title="<?php p($l->t('For anonymous access, leave DN and Password empty.'));?>"
  79. />
  80. <p class="hidden-visually" id="ldap_agent_password_instructions">
  81. <?php p($l->t('For anonymous access, leave DN and Password empty.'));?>
  82. </p>
  83. <button class="ldapSaveAgentCredentials" name="ldapSaveAgentCredentials" type="button">
  84. <?php p($l->t('Save Credentials'));?>
  85. </button>
  86. </div>
  87. <div class="tablerow">&nbsp;</div>
  88. <div class="tablerow">
  89. <textarea id="ldap_base" name="ldap_base"
  90. class="tablecell"
  91. aria-describedby="ldap_base_instructions"
  92. placeholder="<?php p($l->t('One Base DN per line'));?>"
  93. title="<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>">
  94. </textarea>
  95. <p class="hidden-visually" id="ldap_base_instructions">
  96. <?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>
  97. </p>
  98. <button class="ldapDetectBase" name="ldapDetectBase" type="button">
  99. <?php p($l->t('Detect Base DN'));?>
  100. </button>
  101. <button class="ldapTestBase" name="ldapTestBase" type="button">
  102. <?php p($l->t('Test Base DN'));?>
  103. </button>
  104. </div>
  105. <div class="tablerow left">
  106. <input type="checkbox" id="ldap_experienced_admin" value="1"
  107. name="ldap_experienced_admin" class="tablecell"
  108. aria-describedby="ldap_experienced_admin_instructions"
  109. title="<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>"
  110. />
  111. <p class="hidden-visually" id="ldap_experienced_admin_instructions">
  112. <?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>
  113. </p>
  114. <label for="ldap_experienced_admin" class="tablecell">
  115. <?php p($l->t('Manually enter LDAP filters (recommended for large directories)'));?>
  116. </label>
  117. </div>
  118. <div class="tablerow">
  119. <div class="tablecell ldapWizardInfo invisible">&nbsp;
  120. </div>
  121. </div>
  122. </div>
  123. <?php print_unescaped($_['wizardControls']); ?>
  124. </fieldset>