Commit d0f13284 authored by Franco Fichtner's avatar Franco Fichtner

ldap: pretty up config and fix a help string

parent 2e4ecd3b
...@@ -548,21 +548,20 @@ endif; ?> ...@@ -548,21 +548,20 @@ endif; ?>
<tr class="auth_ldap auth_options hidden"> <tr class="auth_ldap auth_options hidden">
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Search scope");?></td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Search scope");?></td>
<td> <td>
<div> <select name='ldap_scope' id='ldap_scope' class="formselect selectpicker" data-style="btn-default">
<?=gettext("Level:");?><br/> <option value="one" <?=$pconfig['ldap_scope'] == 'one' ? "selected=\"selected\"" : "";?>>
<select name='ldap_scope' id='ldap_scope' class="formselect selectpicker" data-style="btn-default"> <?=gettext('One Level');?>
<option value="one" <?=$pconfig['ldap_scope'] == 'one' ? "selected=\"selected\"" : "";?>> </option>
<?=gettext('One Level');?> <option value="subtree" <?=$pconfig['ldap_scope'] == 'subtree' ? "selected=\"selected\"" : "";?>>
</option> <?=gettext('Entire Subtree');?>
<option value="subtree" <?=$pconfig['ldap_scope'] == 'subtree' ? "selected=\"selected\"" : "";?>> </option>
<?=gettext('Entire Subtree');?> </select>
</option> </td>
</select> </tr>
</div> <tr class="auth_ldap auth_options hidden">
<div> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Base DN");?></td>
<?=gettext("Base DN:");?><br/> <td>
<input name="ldap_basedn" type="text" id="ldap_basedn" size="40" value="<?=$pconfig['ldap_basedn'];?>"/> <input name="ldap_basedn" type="text" id="ldap_basedn" size="40" value="<?=$pconfig['ldap_basedn'];?>"/>
</div>
</td> </td>
</tr> </tr>
<tr class="auth_ldap auth_options hidden"> <tr class="auth_ldap auth_options hidden">
...@@ -574,9 +573,8 @@ endif; ?> ...@@ -574,9 +573,8 @@ endif; ?>
</ul> </ul>
<br/> <br/>
<div class="hidden" for="help_for_ldapauthcontainers"> <div class="hidden" for="help_for_ldapauthcontainers">
<br/><?=gettext("Semicolon separated. This will be prepended to the search base DN above or you can specify full container path containing a DC= component.");?> <br/><?=gettext("Semicolon-separated list of distinguished names or a path containing a DC= component.");?>
<br /><?=gettext("Example:");?> CN=Users;DC=example,DC=com <br/><?=gettext("Example:");?> CN=Users,OU=Staff,O=Company;OU=Freelancers,O=Company;DC=example,DC=com
<br /><?=gettext("Example:");?> OU=Staff;OU=Freelancers
</div> </div>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment