diff options
author | Serghei Mihai <smihai@entrouvert.com> | 2016-03-25 15:44:59 (GMT) |
---|---|---|
committer | Serghei Mihai <smihai@entrouvert.com> | 2016-03-25 15:44:59 (GMT) |
commit | cde9238591953c2099550084d275f8783c337e51 (patch) | |
tree | 258e30908865fd77293dcd400bbc00212da190bf | |
parent | bab07d4f61d0631416d4f8c2f420d523b8f71a9d (diff) | |
download | spip-saml-cde9238591953c2099550084d275f8783c337e51.zip spip-saml-cde9238591953c2099550084d275f8783c337e51.tar.gz spip-saml-cde9238591953c2099550084d275f8783c337e51.tar.bz2 |
-rw-r--r-- | balise/login_saml.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/balise/login_saml.php b/balise/login_saml.php index 6bdcc85..ed93d51 100644 --- a/balise/login_saml.php +++ b/balise/login_saml.php @@ -103,16 +103,16 @@ function login_saml_successfull() $attributes = $simplesaml->getAttributes(); $login = $attributes['uid'][0]; - $first_name = $attributes['gn'][0]; - $last_name = $attributes['sn'][0]; + $first_name = $attributes['first_name'][0]; + $last_name = $attributes['last_name'][0]; $email = $attributes['email'][0]; $nameid = $attributes['NameID'][0]; $display_name = $first_name . ' ' . $last_name; - $street = $attributes['street'][0]; - $zipcode = $attributes['postalCode'][0]; - $city = $attributes['l'][0]; + $street = $attributes['address'][0]; + $zipcode = $attributes['zipcode'][0]; + $city = $attributes['city'][0]; $mobile = $attributes['mobile'][0]; - $phone = $attributes['telephoneNumber'][0]; + $phone = $attributes['phone'][0]; $fax = $attributes['fax'][0]; if (!$nameid) { |