Resolve the user DN by LDAP "Who am I?" Extended Operation (RFC4532). Your LDAP server must implement that Extended Operation feature.