From aa8027110b495bd501287cf0b67ac9e9ae1d75a7 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Tue, 12 Jan 2010 02:25:31 +0000 Subject: [PATCH] mnet: MDL-18758 check user_not_fully_set_up before creating user record in auth/mnet --- auth/mnet/auth.php | 5 +++++ lang/en_utf8/mnet.php | 1 + 2 files changed, 6 insertions(+) diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 84240166a6..6bf969f3f3 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -283,6 +283,11 @@ class auth_plugin_mnet extends auth_plugin_base { exit; } + if (user_not_fully_set_up($remoteuser)) { + print_error('notenoughidpinfo', 'mnet'); + exit; + } + $firsttime = false; // get the local record for the remote user diff --git a/lang/en_utf8/mnet.php b/lang/en_utf8/mnet.php index ec8751b666..2a380779e3 100644 --- a/lang/en_utf8/mnet.php +++ b/lang/en_utf8/mnet.php @@ -217,6 +217,7 @@ $string['hostnotconfiguredforsso'] = 'This remote Moodle Hub is not configured f $string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.'; $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['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['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 local users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the mnetlogintoremote 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 .'; -- 2.39.5