mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
auth/cas MDL-23371 Still some bits missing from setting name convertion.
This commit is contained in:
parent
a67f829eee
commit
1298e78b24
@ -274,8 +274,8 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
||||
if (!isset($config->bind_pw)) {
|
||||
$config->bind_pw = '';
|
||||
}
|
||||
if (!isset($config->ldapversion)) {
|
||||
$config->ldapversion = '3';
|
||||
if (!isset($config->ldap_version)) {
|
||||
$config->ldap_version = '3';
|
||||
}
|
||||
if (!isset($config->objectclass)) {
|
||||
$config->objectclass = '';
|
||||
@ -317,7 +317,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
||||
set_config('opt_deref', $config->opt_deref, $this->pluginconfig);
|
||||
set_config('bind_dn', trim($config->bind_dn), $this->pluginconfig);
|
||||
set_config('bind_pw', $config->bind_pw, $this->pluginconfig);
|
||||
set_config('ldapversion', $config->ldapversion, $this->pluginconfig);
|
||||
set_config('ldap_version', $config->ldap_version, $this->pluginconfig);
|
||||
set_config('objectclass', trim($config->objectclass), $this->pluginconfig);
|
||||
set_config('memberattribute', moodle_strtolower(trim($config->memberattribute)), $this->pluginconfig);
|
||||
set_config('memberattribute_isdn', $config->memberattribute_isdn, $this->pluginconfig);
|
||||
|
@ -56,8 +56,8 @@ if (!isset($config->bind_dn)) {
|
||||
if (!isset($config->bind_pw)) {
|
||||
$config->bind_pw = '';
|
||||
}
|
||||
if (!isset($config->ldapversion)) {
|
||||
$config->ldapversion = '3';
|
||||
if (!isset($config->ldap_version)) {
|
||||
$config->ldap_version = '3';
|
||||
}
|
||||
if (!isset($config->objectclass)) {
|
||||
$config->objectclass = '';
|
||||
@ -200,8 +200,8 @@ $yesno = array( get_string('no'), get_string('yes') );
|
||||
$versions = array();
|
||||
$versions[2] = '2';
|
||||
$versions[3] = '3';
|
||||
echo html_writer::select($versions, 'ldapversion', $config->ldapversion, false);
|
||||
if (isset($err['ldapversion'])) { echo $OUTPUT->error_text($err['ldapversion']); }
|
||||
echo html_writer::select($versions, 'ldap_version', $config->ldap_version, false);
|
||||
if (isset($err['ldap_version'])) { echo $OUTPUT->error_text($err['ldap_version']); }
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user