mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
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:
parent
95751e81ac
commit
5921f6974d
@ -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"];
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user