pitbulk / moodle_saml

SAML plugins for moodle (authentication and enrollment)
12 stars 24 forks source link

Attributes not being mapped into user profile #5

Closed DDevine closed 9 years ago

DDevine commented 10 years ago

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.

DBezemer commented 10 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

DDevine commented 10 years ago

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?

pitbulk commented 10 years ago

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