The problem was due to the authentication based on ldap attribute uid which holds values like jdoe, and tickets being associated to mail attribute like
john.doe@example.com.
I could get it a bit better by configuring the ldap Map for the customer like this :
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storagee
-type, http-link, readonly
[ 'UserSalutation', 'Title', 'title', 1, 0, 'var', '''
, 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '''
, 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '''
, 0 ],
[ 'UserLogin', 'Username', 'mail', 1, 1, 'var', '''
, 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '''
, 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '''
, 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, ''
var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '''
, 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '''
, 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '''
, 0 ],
],
};
Regards,