Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.9, 1.9.1, 1.9.2, 2.0
-
Fix Version/s: None
-
Component/s: Enrolments
-
Labels:None
-
Database:Any
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
The IMS Enterprise enrolment plugin allows you to create accounts, and set the user's auth type to $CFG->auth
File: /enrol/imsenterprise/enrol.php
Line: 647
$person->auth = $CFG->auth;
However, since the multiauth changes, $CFG->auth returns a comma-separated list of enabled auth plugins. The effect is, for example, to set mdl_user.auth to 'ldap,manual' rather than one or the other. This means the user cannot log in.
I'm really not sure how to address this. It's not possible to specify the authorisation method in the IMS document; or at least your IMS document wouldn't be compliant anymore.
I've marked this as "Major" because it's going to affect some large institutions come October.
OK, I've given it some thought, and here's a patch that allows you to choose the default authentication method for newly-created users from a drop-down list. It appears on /admin/enrol_config.php?enrol=imsenterprise
Seems to work. I'd appreciate some feedback.