2014-07-10 17:33:53 +00:00
< div class = " outoftheway " >
<!-- Hack for Safari and Chromium / Chrome which ignore autocomplete = " off " -->
< input type = " text " id = " fake_user " name = " fake_user " autocomplete = " off " />
< input type = " password " id = " fake_password " name = " fake_password "
autocomplete = " off " />
</ div >
2013-09-27 16:30:59 +00:00
< fieldset id = " ldapWizard1 " >
< p >
< select id = " ldap_serverconfig_chooser " name = " ldap_serverconfig_chooser " >
< ? php if ( count ( $_ [ 'serverConfigurationPrefixes' ]) === 0 ) {
?>
2014-05-25 10:35:46 +00:00
< option value = " " selected >< ? php p ( $l -> t ( '1. Server' )); ?> </option>');
2013-09-27 16:30:59 +00:00
< ? php
} else {
$i = 1 ;
$sel = ' selected' ;
foreach ( $_ [ 'serverConfigurationPrefixes' ] as $prefix ) {
?>
2014-05-25 10:35:46 +00:00
< option value = " <?php p( $prefix ); ?> " < ? php p ( $sel ); $sel = '' ; ?> ><?php p($l->t('%s. Server:', array($i++)));?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
2013-09-27 16:30:59 +00:00
< ? php
}
}
?>
< option value = " NEW " >< ? php p ( $l -> t ( 'Add Server Configuration' )); ?> </option>
</ select >
2014-10-08 13:09:02 +00:00
< button type = " button " id = " ldap_action_delete_configuration "
2014-05-25 10:35:46 +00:00
name = " ldap_action_delete_configuration " >< ? php p ( $l -> t ( 'Delete Configuration' )); ?> </button>
2013-09-27 16:30:59 +00:00
</ p >
< div class = " hostPortCombinator " >
< div class = " tablerow " >
< div class = " tablecell " >
< div class = " table " >
< input type = " text " class = " host tablecell lwautosave " id = " ldap_host "
name = " ldap_host "
placeholder = " <?php p( $l->t ('Host'));?> "
title = " <?php p( $l->t ('You can omit the protocol, except you require SSL. Then start with ldaps://'));?> "
/>
< span >
< input type = " number " id = " ldap_port " name = " ldap_port "
2013-11-11 14:16:54 +00:00
class = " lwautosave "
2013-09-27 16:30:59 +00:00
placeholder = " <?php p( $l->t ('Port'));?> " />
</ span >
</ div >
</ div >
</ div >
< div class = " tablerow " >
< input type = " text " id = " ldap_dn " name = " ldap_dn "
class = " tablecell lwautosave "
2013-12-12 13:04:10 +00:00
placeholder = " <?php p( $l->t ('User DN'));?> " autocomplete = " off "
2013-09-27 16:30:59 +00:00
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.'));?> "
/>
</ div >
< div class = " tablerow " >
< input type = " password " id = " ldap_agent_password "
class = " tablecell lwautosave " name = " ldap_agent_password "
2013-12-12 13:04:10 +00:00
placeholder = " <?php p( $l->t ('Password'));?> " autocomplete = " off "
2013-09-27 16:30:59 +00:00
title = " <?php p( $l->t ('For anonymous access, leave DN and Password empty.'));?> "
/>
</ div >
< div class = " tablerow " >
< textarea id = " ldap_base " name = " ldap_base "
2013-11-08 16:48:29 +00:00
class = " tablecell lwautosave "
2013-09-27 16:30:59 +00:00
placeholder = " <?php p( $l->t ('One Base DN per line'));?> "
2013-10-09 21:04:06 +00:00
title = " <?php p( $l->t ('You can specify Base DN for users and groups in the Advanced tab'));?> " >
2013-09-27 16:30:59 +00:00
</ textarea >
</ div >
2014-10-07 14:29:06 +00:00
< div class = " tablerow left " >
< input type = " checkbox " id = " ldap_experienced_admin " value = " 1 "
name = " ldap_experienced_admin " class = " tablecell lwautosave "
title = " <?php p( $l->t ('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?> "
/>
2014-10-16 10:08:05 +00:00
< label for = " ldap_experienced_admin " class = " tablecell " >
< ? php p ( $l -> t ( 'Manually enter LDAP filters (recommended for large directories)' )); ?>
</ label >
2014-10-07 14:29:06 +00:00
</ div >
2013-09-27 16:30:59 +00:00
< div class = " tablerow " >
2013-10-04 14:33:37 +00:00
< div class = " tablecell ldapWizardInfo invisible " >& nbsp ;
2013-09-27 16:30:59 +00:00
</ div >
</ div >
</ div >
< ? php print_unescaped ( $_ [ 'wizardControls' ]); ?>
2014-05-25 10:35:46 +00:00
</ fieldset >