Skip to content

Commit

Permalink
Auth/LDAP -- a proper dropdown for search subcontexts option
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed May 17, 2005
1 parent bdf09a8 commit 22693f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion auth/ldap/config.html
Expand Up @@ -157,7 +157,12 @@ <h4><?php print_string("auth_ldap_user_settings", "auth") ?> </h4>
<tr valign="top" class="required">
<td align="right">ldap_search_sub:</td>
<td>
<input name="ldap_search_sub" type="text" size="1" value="<?php echo $config->ldap_search_sub?>">
<?php
$choices = array();;
$choices["0"] = get_string("no");
$choices["1"] = get_string("yes");
choose_from_menu ($choices, "ldap_search_sub", $form->ldap_search_sub, "");
?>
<?php if (isset($err["ldap_search_sub"])) formerr($err["ldap_search_sub"]); ?>
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion lang/en/auth.php
Expand Up @@ -64,7 +64,7 @@
$string['auth_ldap_objectclass'] = 'Optional: Overrides objectClass used to name/search users on ldap_user_type. Usually you dont need to chage this.';
$string['auth_ldap_opt_deref'] = 'Determines how aliases are handled during search. Select one of the following values: \"No\" (LDAP_DEREF_NEVER) or \"Yes\" (LDAP_DEREF_ALWAYS) ';
$string['auth_ldap_passwdexpire_settings'] = 'LDAP password expiration settings.';
$string['auth_ldap_search_sub'] = 'Put value <> 0 if you like to search users from subcontexts.';
$string['auth_ldap_search_sub'] = 'Search users from subcontexts.';
$string['auth_ldap_server_settings'] = 'LDAP server settings';
$string['auth_ldap_update_userinfo'] = 'Update user information (firstname, lastname, address..) from LDAP to Moodle. Specify \"Data mapping\" settings as you need.';
$string['auth_ldap_user_attribute'] = 'Optional: Overrides the attribute used to name/search users. Usually \'cn\'.';
Expand Down

0 comments on commit 22693f4

Please sign in to comment.