@CotterPin
I've noticed that both phone fields are empty too. The cause is probably the ldapGetUsernameFromEmail function. So i've added diagnostic messages to this and the ldapGetEmail function. Please Download the V7 and check Ldap Diagnostic again.
It appears to be binding to both LDAP entries - domain.com and lex.adapps.domain.com are different LDAP domains. Anyway, here's my diagnostic output for user@domain.com:
Result: Leave empty to use the Administrator in LDAP Settings
calling ldap_connect with: "ldaps://ldap.domain.com"
setting LDAP_OPT_PROTOCOL_VERSION to 3 and LDAP_OPT_REFERRALS to 0
binding to ldap with "cn=ESCEAUTH,ou=Applications,o=domain.com" and his password
using the filter: "(&(uid=user@domain.com))"
calling ldap_search with the domain: "o=domain.com", the Filter: "(&(uid=user@domain.com))" and the Attributes: "array("givenname")"
LDAP returned field data: "FirstName"
Debug of function ldapGetEmail():
getting the email of user: "user@domain.com"
binding to ldap with "cn=ESCEAUTH,ou=Applications,o=domain.com" and his password
calling ldap_search with the domain: "o=domain.com", the Filter: "(&(uid=user@domain.com))" and the Attributes: "array("uid")"
LDAP returned field data: "user@domain.com"
Debug of function ldapGetEmail():
getting the email of user: "user@domain.com"
binding to ldap with "admin@lex.adapps.domain.com" and his password
calling ldap_search with the domain: "DC=lex,DC=adapps,DC=domain,DC=com", the Filter: "(&(sAMAccountName=user@domain.com))" and the Attributes: "array("mail")"
LDAP returned nothing...
Debug of function ldapGetUsernameFromEmail():
getting the user of email: "user@domain.com"
binding to ldap with "cn=ESCEAUTH,ou=Applications,o=domain.com" and his password
calling ldap_search with the domain: "o=domain.com", the Filter: "(&(uid=user@domain.com))" and the Attributes: "array("uid")"
LDAP returned field data: "user@domain.com"
Debug of function ldapGetUsernameFromEmail():
getting the user of email: "user@domain.com"
binding to ldap with "admin@lex.adapps.domain.com" and his password
calling ldap_search with the domain: "DC=lex,DC=adapps,DC=domain,DC=com", the Filter: "(&(mail=user@domain.com))" and the Attributes: "array("sAMAccountName")"
LDAP returned nothing...