Considerations for upgrading config.php for Moodle 2.9 to Moodle 3.1

Considerations for upgrading config.php for Moodle 2.9 to Moodle 3.1

by Rance Hall -
Number of replies: 0

I've been practicing with the moodle upgrade as we are doing extensive work to migrate our fleet of moodle sites.

We are an educational support center so we have sites for many of our member schools.

we try to deploy an extensive config.php file so that certain settings do not get overwritten by admins at the respective schools.

Most of these revolve around our email relay system and our single sign on configuration.

in our old config.php we have these settings configured:

(data values sanitized for public consumption)

$CFG->auth = 'cas,mnet';
$CFG->smtphosts = '';
$CFG->noreplyaddress = '';
$CFG->supportname = '';
$CFG->supportemail = '';
$CFG->forgottenpasswordurl = '';
$CFG->calendartype = 'gregorian';

$CFG->disableupdatenotifications = true;
$CFG->disableupdateautodeploy = true;

$CFG->forced_plugin_settings = array('moodlecourse' => array('maxbytes' => '104857600'),
        'auth/cas' => array('attrcreators' => '',
                'baseuri' => 'cas/',
                        'bind_dn' => '',
                        'bind_pw' => '',
                        'casversion' => '2.0',
                        'certificate_check', '0',
                        'certificate_path' => '',
                        'contexts' => '',
                        'field_lock_address' => 'unlocked',
                        'field_lock_city' => 'unlocked',
                        'field_lock_country' => 'unlocked',
                        'field_lock_department' => 'unlocked',
                        'field_lock_description' => 'unlocked',
                        'field_lock_email' => 'unlocked',
                        'field_lock_firstname' => 'locked',
                        'field_lock_idnumber' => 'unlocked',
                        'field_lock_institution' => 'unlocked',
                        'field_lock_lang' => 'unlocked',
                        'field_lock_lastname' => 'locked',
                        'field_lock_phone1' => 'unlocked',
                        'field_lock_phone2' => 'unlocked',
                        'field_lock_url' => 'unlocked',
                        'field_map_address' => '',
                        'field_map_city' => '',
                        'field_map_country' => '',
                        'field_map_department' => '',
                        'field_map_description' => '',
                        'field_map_email' => 'mail',
                        'field_map_firstname' => 'givenName',
                        'field_map_idnumber' => '',
                        'field_map_institution' => '',
                        'field_map_lang' => '',
                        'field_map_lastname' => 'sn',
                        'field_map_phone1' => '',
                        'field_map_phone2' => '',
                        'field_map_url' => '',
                        'field_updatelocal_address' => 'oncreate',
                        'field_updatelocal_city' => 'onlogin',
                        'field_updatelocal_country' => 'onlogin',
                        'field_updatelocal_department' => 'oncreate',
                        'field_updatelocal_description' => 'oncreate',
                        'field_updatelocal_email' => 'onlogin',
                        'field_updatelocal_firstname' => 'onlogin',
                        'field_updatelocal_idnumber' => 'oncreate',
                        'field_updatelocal_institution' => 'oncreate',
                        'field_updatelocal_lang' => 'oncreate',
                        'field_updateremote_lastname' => '0',
                        'field_updateremote_phone1' => '0',
                        'field_updateremote_phone2' => '0',
                        'field_updateremote_url' => '0',
                        'hostname' => '',
                        'host_url' => '',
                        'ldapencoding' => 'utf-8',
                        'ldap_version' => '3',
                        'logoutcas' => '1',
                        'memberattribute' => '',
                        'memberattribute_isdn' => '',
                        'multiauth' => '0',
                        'objectclass' => '',
                        'opt_deref' => '0',
                        'port' => '443',
                        'proxycas' => '0',
                        'removeuser' => '1',
                        'search_sub' => '1',
                        'user_attribute' => 'mail',
                        'user_type' => 'default'
                )

I know that mnet is no longer supported but I still want cas configured much like this.  It doesn't seem to work with a new 3.1 install.  Any ideas appreciated.

Average of ratings: -