mnet: MDL-18758 check user_not_fully_set_up before creating user record in auth/mnet

This commit is contained in:
Penny Leach 2010-01-12 02:25:31 +00:00
parent 47c18e9b98
commit aa8027110b
2 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,11 @@ class auth_plugin_mnet extends auth_plugin_base {
exit; exit;
} }
if (user_not_fully_set_up($remoteuser)) {
print_error('notenoughidpinfo', 'mnet');
exit;
}
$firsttime = false; $firsttime = false;
// get the local record for the remote user // get the local record for the remote user

View File

@ -217,6 +217,7 @@ $string['hostnotconfiguredforsso'] = 'This remote Moodle Hub is not configured f
$string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.'; $string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.';
$string['unknownerror'] = 'Unknown error occurred during negotiation.'; $string['unknownerror'] = 'Unknown error occurred during negotiation.';
$string['nolocaluser'] = 'No local record exists for remote user, and it could not be created, as this host will not auto create users. Please contact your administrator!'; $string['nolocaluser'] = 'No local record exists for remote user, and it could not be created, as this host will not auto create users. Please contact your administrator!';
$string['notenoughidpinfo'] = 'Your identity provider is not giving us enough information to create your account locally. Sorry!';
$string['databaseerror'] = 'Could not write details to the database.'; $string['databaseerror'] = 'Could not write details to the database.';
$string['ssoacldescr'] = 'Use this page to grant/deny access to specific users from remote Moodle Network hosts. This is functional when you are offering SSO services to remote users. To control your <em>local</em> users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the <em>mnetlogintoremote</em> capability.'; $string['ssoacldescr'] = 'Use this page to grant/deny access to specific users from remote Moodle Network hosts. This is functional when you are offering SSO services to remote users. To control your <em>local</em> users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the <em>mnetlogintoremote</em> capability.';
$string['ssoaclneeds'] = 'For this functionality to work, you must have Moodle Networking On, plus the Moodle Network authentication plugin enabled with auto-add users enabled .'; $string['ssoaclneeds'] = 'For this functionality to work, you must have Moodle Networking On, plus the Moodle Network authentication plugin enabled with auto-add users enabled .';