part.wizard-server.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <fieldset id="ldapWizard1">
  2. <p>
  3. <select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
  4. <?php if(count($_['serverConfigurationPrefixes']) === 0 ) {
  5. ?>
  6. <option value="" selected>1. Server</option>');
  7. <?php
  8. } else {
  9. $i = 1;
  10. $sel = ' selected';
  11. foreach($_['serverConfigurationPrefixes'] as $prefix) {
  12. ?>
  13. <option value="<?php p($prefix); ?>"<?php p($sel); $sel = ''; ?>><?php p($i++); ?>. Server: <?php p($_['serverConfigurationHosts'][$prefix]); ?></option>
  14. <?php
  15. }
  16. }
  17. ?>
  18. <option value="NEW"><?php p($l->t('Add Server Configuration'));?></option>
  19. </select>
  20. <button id="ldap_action_delete_configuration"
  21. name="ldap_action_delete_configuration">Delete Configuration</button>
  22. </p>
  23. <div class="hostPortCombinator">
  24. <div class="tablerow">
  25. <div class="tablecell">
  26. <div class="table">
  27. <input type="text" class="host tablecell lwautosave" id="ldap_host"
  28. name="ldap_host"
  29. placeholder="<?php p($l->t('Host'));?>"
  30. title="<?php p($l->t('You can omit the protocol, except you require SSL. Then start with ldaps://'));?>"
  31. />
  32. <span>
  33. <input type="number" id="ldap_port" name="ldap_port"
  34. class="lwautosave"
  35. placeholder="<?php p($l->t('Port'));?>" />
  36. </span>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="tablerow">
  41. <input type="text" id="ldap_dn" name="ldap_dn"
  42. class="tablecell lwautosave"
  43. placeholder="<?php p($l->t('User DN'));?>" autocomplete="off"
  44. 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.'));?>"
  45. />
  46. </div>
  47. <div class="tablerow">
  48. <input type="password" id="ldap_agent_password"
  49. class="tablecell lwautosave" name="ldap_agent_password"
  50. placeholder="<?php p($l->t('Password'));?>" autocomplete="off"
  51. title="<?php p($l->t('For anonymous access, leave DN and Password empty.'));?>"
  52. />
  53. </div>
  54. <div class="tablerow">
  55. <textarea id="ldap_base" name="ldap_base"
  56. class="tablecell lwautosave"
  57. placeholder="<?php p($l->t('One Base DN per line'));?>"
  58. title="<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>">
  59. </textarea>
  60. </div>
  61. <div class="tablerow">
  62. <div class="tablecell ldapWizardInfo invisible">&nbsp;
  63. </div>
  64. </div>
  65. </div>
  66. <?php print_unescaped($_['wizardControls']); ?>
  67. </fieldset>