Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psycopg2 authentication fails for auth mode "ident" #306

Closed
stevenvergenz opened this issue Nov 25, 2014 · 1 comment
Closed

psycopg2 authentication fails for auth mode "ident" #306

stevenvergenz opened this issue Nov 25, 2014 · 1 comment

Comments

@stevenvergenz
Copy link
Contributor

For whatever reason, psycopg2 fails to authenticate the postgresql user if the authentication mode is set to "ident" in the postgresql server config. You get the error:

psycopg2.OperationalError: FATAL: Ident authentication failed for user <db_user>

This is a problem because ident is the default security mode on Redhat-based distros. In order for it to work, the psql auth mode must be set to either md5 or trust in /var/lib/pgsql/data/pg_hba.conf.

@ljwolford
Copy link
Contributor

Not meant for Redhat-based distros, lists Ubuntu environment at top of instructions. If you wanted to write up an install script in the wiki for Redhat distros, that would work and be great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants