part.wizard-server.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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); $sel = ''; ?>><?php p($l->t('%s. Server:', [$i++]));?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
  10. <?php
  11. }
  12. ?>
  13. </select>
  14. <button type="button" id="ldap_action_add_configuration"
  15. name="ldap_action_add_configuration" class="icon-add icon-default-style"
  16. title="<?php p($l->t('Add a new configuration'));?>">&nbsp;</button>
  17. <button type="button" id="ldap_action_copy_configuration"
  18. name="ldap_action_copy_configuration"
  19. class="ldapIconCopy icon-default-style"
  20. title="<?php p($l->t('Copy current configuration into new directory binding'));?>">&nbsp;</button>
  21. <button type="button" id="ldap_action_delete_configuration"
  22. name="ldap_action_delete_configuration" class="icon-delete icon-default-style"
  23. title="<?php p($l->t('Delete the current configuration'));?>">&nbsp;</button>
  24. </p>
  25. <div class="hostPortCombinator">
  26. <div class="tablerow">
  27. <div class="tablecell">
  28. <div class="table">
  29. <input type="text" class="host" id="ldap_host"
  30. name="ldap_host"
  31. placeholder="<?php p($l->t('Host'));?>"
  32. title="<?php p($l->t('You can omit the protocol, unless you require SSL. If so, start with ldaps://'));?>"
  33. />
  34. <span class="hostPortCombinatorSpan">
  35. <input type="number" id="ldap_port" name="ldap_port"
  36. placeholder="<?php p($l->t('Port'));?>" />
  37. <button class="ldapDetectPort" name="ldapDetectPort" type="button">
  38. <?php p($l->t('Detect Port'));?>
  39. </button>
  40. </span>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="tablerow">&nbsp;</div>
  45. <div class="tablerow">
  46. <input type="text" id="ldap_dn" name="ldap_dn"
  47. class="tablecell"
  48. placeholder="<?php p($l->t('User DN'));?>" autocomplete="off"
  49. 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.'));?>"
  50. />
  51. </div>
  52. <div class="tablerow">
  53. <input type="password" id="ldap_agent_password"
  54. class="tablecell" name="ldap_agent_password"
  55. placeholder="<?php p($l->t('Password'));?>" autocomplete="off"
  56. title="<?php p($l->t('For anonymous access, leave DN and Password empty.'));?>"
  57. />
  58. <button class="ldapSaveAgentCredentials" name="ldapSaveAgentCredentials" type="button">
  59. <?php p($l->t('Save Credentials'));?>
  60. </button>
  61. </div>
  62. <div class="tablerow">&nbsp;</div>
  63. <div class="tablerow">
  64. <textarea id="ldap_base" name="ldap_base"
  65. class="tablecell"
  66. placeholder="<?php p($l->t('One Base DN per line'));?>"
  67. title="<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>">
  68. </textarea>
  69. <button class="ldapDetectBase" name="ldapDetectBase" type="button">
  70. <?php p($l->t('Detect Base DN'));?>
  71. </button>
  72. <button class="ldapTestBase" name="ldapTestBase" type="button">
  73. <?php p($l->t('Test Base DN'));?>
  74. </button>
  75. </div>
  76. <div class="tablerow left">
  77. <input type="checkbox" id="ldap_experienced_admin" value="1"
  78. name="ldap_experienced_admin" class="tablecell"
  79. title="<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>"
  80. />
  81. <label for="ldap_experienced_admin" class="tablecell">
  82. <?php p($l->t('Manually enter LDAP filters (recommended for large directories)'));?>
  83. </label>
  84. </div>
  85. <div class="tablerow">
  86. <div class="tablecell ldapWizardInfo invisible">&nbsp;
  87. </div>
  88. </div>
  89. </div>
  90. <?php print_unescaped($_['wizardControls']); ?>
  91. </fieldset>