From: | Andy Shellam <andy(at)andycc(dot)net> |
---|---|
To: | gsivaraman(at)magnasync(dot)com |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: pg_hba.conf |
Date: | 2006-03-01 10:02:59 |
Message-ID: | 44057153.3040500@andycc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Have you also changed your pg_ident.conf to map the user gowri to a
database user, and does that database user exist in pgSQL?
By default 127.0.0.1 is set up as trust authentication, so if you
haven't changed this, it will always let you through no matter what
username/password you give.
Andy
Gowri Sivaraman wrote:
> Hi,
> I am having problems with my connectivity for any of the users other
> than the post gres. Let me elaborate on the situation
>
>
> I am using OSX and i have changed the pg_hba.conf file to reflect
> ident_authentication. I have attached my pg_hba.conf file. When i try
> connecting as a user i get the following error
>
>
> Gowri-Sivaraman:~ gowri$ psql -h localhost gen3logger
> psql: FATAL: Ident authentication failed for user "gowri"
>
>
> Even when i have given the user gowri trust authorization, it is not
> working. For some reason, it is recognizing local . when i connect
> using the host it is working. Can anybody let me know if i am missing
> something here
>
>
> Gowri-Sivaraman:~ gowri$ psql -h 127.0.0.1 -U gowri template1
> Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help with psql commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
>
> template1=>
>
>
>
>
> !DSPAM:14,440507c549411563562004!
>
>
>
>
> Thanks
> Gowri
>
>
> !DSPAM:14,440507c549411563562004!
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>
> !DSPAM:14,440507c549411563562004!
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Shellam | 2006-03-01 10:07:41 | [Fwd: Restricting the access to a database] |
Previous Message | Gourish Singbal | 2006-03-01 09:15:22 | Re: Database information |