Auth error with DN name insted of IP

Hi let we assume I have assign one DN to grafana like https://example.grafana.com to running grafana now when I am giving LDAP(LDAP Integration is success) user credentials to login to the instance it’s showing invalid credentials but when I use IP instead of DN it’s working how to fix that?