MDL-31578 auth_shibboleth: Custom fields added to shibboleth settings

Since LDAP is able to sync custom user profile fields, this feature was
requested for Shibboleth.
This commit is contained in:
Jan Eberhardt 2015-01-29 16:45:34 +00:00
parent 95751e81ac
commit 5921f6974d
2 changed files with 3 additions and 2 deletions

View File

@ -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"];
}

View File

@ -138,7 +138,7 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
<?php
print_auth_lock_options($this->authtype, $user_fields, '<!-- empty help -->', true, false);
print_auth_lock_options($this->authtype, $user_fields, '<!-- empty help -->', true, false, $this->get_custom_user_profile_fields());
?>
</table>