Also, When I log in using User/Password it works... so Im pretty sure that its something with AD authentication... any Ideas?
Cannot connect to the server [primary domain name] when trying to Authenticate with AD to PostgreSQL
Jonasta dos Santos
1
Reputation point
Hi Folks,
Im trying to follow this documentation, so I can authenticate to PostgreSQL using AAD
https://video2.skills-academy.com/en-us/azure/postgresql/howto-configure-sign-in-aad-authentication
- I set the DB AD Admin as the authenticating user (jota@[......]hotmail.onmicrosoft.com)
- Im able to get a token for this user from https://ossrdbms-aad.database.windows.net
But when I try to connect using psql / PgAdmin / Azure Data Studio clients... it always throws the same error:
FATAL: Cannot connect to the server [......]hotmail.onmicrosoft.com (the domain of the user)