part.wizard-server.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <option value="NEW"><?php p($l->t('Add Server Configuration'));?></option>
  25. </select>
  26. <button type="button" id="ldap_action_delete_configuration"
  27. name="ldap_action_delete_configuration"><?php p($l->t('Delete Configuration'));?></button>
  28. </p>
  29. <div class="hostPortCombinator">
  30. <div class="tablerow">
  31. <div class="tablecell">
  32. <div class="table">
  33. <input type="text" class="host tablecell lwautosave" id="ldap_host"
  34. name="ldap_host"
  35. placeholder="<?php p($l->t('Host'));?>"
  36. title="<?php p($l->t('You can omit the protocol, except you require SSL. Then start with ldaps://'));?>"
  37. />
  38. <span>
  39. <input type="number" id="ldap_port" name="ldap_port"
  40. class="lwautosave"
  41. placeholder="<?php p($l->t('Port'));?>" />
  42. </span>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="tablerow">
  47. <input type="text" id="ldap_dn" name="ldap_dn"
  48. class="tablecell lwautosave"
  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 lwautosave" 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. </div>
  60. <div class="tablerow">
  61. <textarea id="ldap_base" name="ldap_base"
  62. class="tablecell lwautosave"
  63. placeholder="<?php p($l->t('One Base DN per line'));?>"
  64. title="<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>">
  65. </textarea>
  66. </div>
  67. <div class="tablerow left">
  68. <input type="checkbox" id="ldap_experienced_admin" value="1"
  69. name="ldap_experienced_admin" class="tablecell lwautosave"
  70. title="<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>"
  71. />
  72. <label for="ldap_experienced_admin" class="tablecell">
  73. <?php p($l->t('Manually enter LDAP filters (recommended for large directories)'));?>
  74. </label>
  75. </div>
  76. <div class="tablerow">
  77. <div class="tablecell ldapWizardInfo invisible">&nbsp;
  78. </div>
  79. </div>
  80. </div>
  81. <?php print_unescaped($_['wizardControls']); ?>
  82. </fieldset>