Interface for SC#106

Merged from MOODLE_15_STABLE
This commit is contained in:
stronk7
2005-07-14 15:25:43 +00:00
parent 244b4e8f7c
commit f5686a5839
+18 -3
View File
@@ -6,6 +6,7 @@
optional_variable($config->ldap_user_attribute, "");
optional_variable($config->ldap_search_sub, "");
optional_variable($config->ldap_opt_deref, "");
optional_variable($config->ldap_preventpassindb, 0);
optional_variable($config->ldap_bind_dn, "");
optional_variable($config->ldap_bind_pw, "");
optional_variable($config->ldap_version, "2");
@@ -25,9 +26,9 @@
optional_variable($config->auth_ldap_stdchangepassword, false);
if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
print '<p align="center"><font color="red"><strong>Warning:
print '<tr><td><p align="center"><font color="red"><strong>Warning:
The PHP LDAP module does not seem to be present.
Please ensure it is installed and enabled.</strong></font></p>';
Please ensure it is installed and enabled.</strong></font></p></td></tr>';
}
?>
@@ -69,6 +70,20 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
</td>
</tr>
<tr valign="top" class="required">
<td align="right">ldap_preventpassindb:</td>
<td>
<?php
$choices = array();
$choices["0"] = get_string("no");
$choices["1"] = get_string("yes");
choose_from_menu ($choices, "ldap_preventpassindb", $config->ldap_preventpassindb, "");
?>
</td><td>
<?php print_string("ldap_preventpassindb","auth") ?>
</td>
</tr>
<tr valign="top" class="required">
<td align="right">ldap_bind_dn:</td>
<td>
@@ -121,7 +136,7 @@ if (!function_exists('ldap_connect')){ // Is php4-ldap really there?
<td align="right">ldap_search_sub:</td>
<td>
<?php
$choices = array();;
$choices = array();
$choices["0"] = get_string("no");
$choices["1"] = get_string("yes");
choose_from_menu ($choices, "ldap_search_sub", $config->ldap_search_sub, "");