1
0

part.wizard-server.php 3.8 KB

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