summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-03-25 15:44:59 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-03-25 15:44:59 (GMT)
commitcde9238591953c2099550084d275f8783c337e51 (patch)
tree258e30908865fd77293dcd400bbc00212da190bf
parentbab07d4f61d0631416d4f8c2f420d523b8f71a9d (diff)
downloadspip-saml-master.zip
spip-saml-master.tar.gz
spip-saml-master.tar.bz2
update user attributes list(#10443)HEADmaster
-rw-r--r--balise/login_saml.php12
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) {