Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to get pgadmin to do ident auth for local users? It would be nice to not have to set a password for my local user on a development machine and simply be able to use psql and pgadmin3 without a password.

share|improve this question
up vote 6 down vote accepted

Pgadmin just passes through the username you provide to it to the server, if it's asking you for a password, it's because the server is telling it that a password is required for your connection method. If the development machine is a Unix system, then leave the "Host:" field blank so that pgadmin connects using the local Unix socket rather than TCP.

The postgresql server's pg_hba.conf controls how users are identified and when they're required to provide a password. Most default pg_hba.conf files have the following line:

local   all         all                       ident sameuser

This indicates that "local" connections to "all" databases by "all" users use the "ident sameuser" authentication method, meaning that as long as the username you're trying to connect with matches the username you logged in to the machine with, it'll accept the connection without a password. If you want to be able to log in with any username without a password, you can change "ident sameuser" to "trust".

If your system usernames don't match the database usernames, postgresql has a separate file named pg_ident.conf that lists the system username and its matching database username, along with a name for this map. Create entries for your developer(s) and replace "sameuser" in pg_hba.conf with the name of the map.

share|improve this answer
Leaving host blank was all I needed, but thank you =) – jcm Oct 30 '10 at 9:16
Leaving the host blank is no longer valid. It prompts "please specify address" in the status bar and the OK button is disabled until it is non-blank. – Quolonel Questions Nov 27 '14 at 23:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.