diff --git a/auth/shibboleth/auth.php b/auth/shibboleth/auth.php index 02b3529ef3d..ddfe96f6e3c 100644 --- a/auth/shibboleth/auth.php +++ b/auth/shibboleth/auth.php @@ -143,7 +143,8 @@ class auth_plugin_shibboleth extends auth_plugin_base { $configarray = (array) $this->config; $moodleattributes = array(); - foreach ($this->userfields as $field) { + $userfields = array_merge($this->userfields, $this->get_custom_user_profile_fields()); + foreach ($userfields as $field) { if (isset($configarray["field_map_$field"])) { $moodleattributes[$field] = $configarray["field_map_$field"]; } diff --git a/auth/shibboleth/config.html b/auth/shibboleth/config.html index 9a1854f2e67..101be915e0b 100644 --- a/auth/shibboleth/config.html +++ b/auth/shibboleth/config.html @@ -138,7 +138,7 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/ authtype, $user_fields, '', true, false); +print_auth_lock_options($this->authtype, $user_fields, '', true, false, $this->get_custom_user_profile_fields()); ?>