From cde9238591953c2099550084d275f8783c337e51 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 25 Mar 2016 16:44:59 +0100 Subject: [PATCH] update user attributes list(#10443) --- balise/login_saml.php | 12 ++++++------ 1 file 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) {