mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-12689-master-fix1' of http://github.com/damyon/moodle
This commit is contained in:
commit
5eff54929d
2 changed files with 442 additions and 432 deletions
|
@ -26,6 +26,9 @@ defined('MOODLE_INTERNAL') || die;
|
||||||
|
|
||||||
if ($ADMIN->fulltree) {
|
if ($ADMIN->fulltree) {
|
||||||
|
|
||||||
|
if (!function_exists('ldap_connect')) {
|
||||||
|
$settings->add(new admin_setting_heading('auth_casnotinstalled', '', get_string('auth_casnotinstalled', 'auth_cas')));
|
||||||
|
} else {
|
||||||
// We use a couple of custom admin settings since we need to massage the data before it is inserted into the DB.
|
// We use a couple of custom admin settings since we need to massage the data before it is inserted into the DB.
|
||||||
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_lowercase_configtext.php');
|
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_lowercase_configtext.php');
|
||||||
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_contexts_configtext.php');
|
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_contexts_configtext.php');
|
||||||
|
@ -258,6 +261,7 @@ if ($ADMIN->fulltree) {
|
||||||
$settings->add(new admin_setting_configselect('auth_cas/removeuser',
|
$settings->add(new admin_setting_configselect('auth_cas/removeuser',
|
||||||
new lang_string('auth_remove_user_key', 'auth'),
|
new lang_string('auth_remove_user_key', 'auth'),
|
||||||
new lang_string('auth_remove_user', 'auth'), AUTH_REMOVEUSER_KEEP, $deleteopt));
|
new lang_string('auth_remove_user', 'auth'), AUTH_REMOVEUSER_KEEP, $deleteopt));
|
||||||
|
}
|
||||||
|
|
||||||
// Display locking / mapping of profile fields.
|
// Display locking / mapping of profile fields.
|
||||||
$authplugin = get_auth_plugin($this->name);
|
$authplugin = get_auth_plugin($this->name);
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
defined('MOODLE_INTERNAL') || die;
|
defined('MOODLE_INTERNAL') || die;
|
||||||
|
|
||||||
if ($ADMIN->fulltree) {
|
if ($ADMIN->fulltree) {
|
||||||
|
|
||||||
|
if (!function_exists('ldap_connect')) {
|
||||||
|
$settings->add(new admin_setting_heading('auth_ldap_noextension', '', get_string('auth_ldap_noextension', 'auth_ldap')));
|
||||||
|
} else {
|
||||||
|
|
||||||
// We use a couple of custom admin settings since we need to massage the data before it is inserted into the DB.
|
// We use a couple of custom admin settings since we need to massage the data before it is inserted into the DB.
|
||||||
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_lowercase_configtext.php');
|
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_lowercase_configtext.php');
|
||||||
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_contexts_configtext.php');
|
require_once($CFG->dirroot.'/auth/ldap/classes/admin_setting_special_contexts_configtext.php');
|
||||||
|
@ -287,6 +292,7 @@ if ($ADMIN->fulltree) {
|
||||||
$settings->add(new auth_ldap_admin_setting_special_ntlm_configtext('auth_ldap/ntlmsso_remoteuserformat',
|
$settings->add(new auth_ldap_admin_setting_special_ntlm_configtext('auth_ldap/ntlmsso_remoteuserformat',
|
||||||
get_string('auth_ntlmsso_remoteuserformat_key', 'auth_ldap'),
|
get_string('auth_ntlmsso_remoteuserformat_key', 'auth_ldap'),
|
||||||
get_string('auth_ntlmsso_remoteuserformat', 'auth_ldap'), '', PARAM_RAW_TRIMMED));
|
get_string('auth_ntlmsso_remoteuserformat', 'auth_ldap'), '', PARAM_RAW_TRIMMED));
|
||||||
|
}
|
||||||
|
|
||||||
// Display locking / mapping of profile fields.
|
// Display locking / mapping of profile fields.
|
||||||
$authplugin = get_auth_plugin($this->name);
|
$authplugin = get_auth_plugin($this->name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue