part.wizard-server.php 4.0 KB

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