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) {