Closed DDevine closed 9 years ago
You also need to configure the mapping of the profile fields on the SAML plugin page in Moodle. Please note that the field names must exactly match the field names in the SimpleSAMLphp authentication test page (literal), otherwise the plugin will fallback onto defaults.
If all you want to do is SAML authenticate, and not use the course/enrol mapping I can recommend using Piers' version at https://github.com/piersharding/moodle-auth_saml
Yeah I have definitely configured the profile fields on the SAML plugin page and I specifically copied the field names from the authentication test page.
It really should work though, so can we find out why it doesn't? Is there a way to tell if it is in fall-back mode?
You can use php debugger, or the tidy "print_r" and exit.
In order to see what the Service Provider recieve you can use the SAML Tracer Firefox plugin
I am running SimpleSAMLphp and pulling attributes from a Drupal instance. The attributes are being pulled out of Drupal fine because they appear in the SimpleSAMLphp authentication test page just fine.
The user is authenticated and the Firstname and Lastname attributes ("givenName" and "sn") are even being used, however the email address ("mail") and other details such as the Organisational Unit ("ou") are not being mapped into the Moodle user profile.
auth_saml_moodle25_2013110701
Moodle version 2013111801.06 Moodle release 2.6.1+ (Build: 20140207)
SimpleSAMLphp 1.11.0
I have set all of the attributes to be updated on login and this has not helped.