Quantcast
Viewing all articles
Browse latest Browse all 13329

Role Authentication Failure

At some point I broke authentication for my role 'carlos' to be able to login. I just stood up a PostgreSQL 9.1.9 server. I know I am inserting the correct password for my 'carlos' role. I've also changed the password several times to be sure.

When I view the logs, it's says:

Code:

2013-04-14 00:41:52 EDT FATAL:  password authentication failed for user "carlos"
In psql, my role permissions look as follows:

Code:

postgres=# \dg
                            List of roles
 Role name |                  Attributes                  | Member of
-----------+------------------------------------------------+-----------
 carlos    | Superuser, Create role, Create DB, Replication | {}
 dba      | No inheritance, Cannot login                  | {}
 postgres  | Superuser, Create role, Create DB, Replication | {}

My pg_hba.conf is also fairly simple:

Code:

# Database administrative login by Unix domain socket
local  all            postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                METHOD

# "local" is for Unix domain socket connections only
local  all            all                                    md5
# IPv4 local connections:
host    all            all            127.0.0.1/32            md5
host    all            all            192.168.1.0/24          md5

Can anyone help me figure out why 'carlos' can't login into my database? I thought about dropping the role and recreating but I want to understand how to troubleshoot this and see what is blocking him.

Thanks for any info / help!

Viewing all articles
Browse latest Browse all 13329

Trending Articles