Lists: | pgsql-novice |
---|
From: | Don Patou <pknoob(at)noos(dot)fr> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | configuring postgresql on the browser |
Date: | 2003-04-04 21:18:41 |
Message-ID: | 200304042318.41868.pknoob@noos.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
I'm trying to get pgsql to work on my browser but I can't connect. It works
great on the shell and the psql webmin module works great but when it comes
to phppgadmin or connecting my php application I get a :
"Warning: pg_connect() unable to connect to PostgreSQL server: FATAL: IDENT
authentication failed for user "joe""
do i need to add a new user such as localhost or something? I don't why my
webmin module is working while my phppgadmin is not.
this is what's on my pg_hba.conf file maybe there's something wrong with it:
local all all ident
sameu\
ser
host all all 127.0.0.1 255.255.255.255 ident
sameu\
ser
host all all 0.0.0.0 255.255.255.255 reject
\
thanx in advance
From: | "A(dot)Bhuvaneswaran" <bhuvansql(at)myrealbox(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: configuring postgresql on the browser |
Date: | 2003-04-05 04:52:47 |
Message-ID: | Pine.LNX.4.44.0304051019190.1044-100000@Bhuvan.bksys.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
> I'm trying to get pgsql to work on my browser but I can't connect. It works
> great on the shell and the psql webmin module works great but when it comes
> to phppgadmin or connecting my php application I get a :
>
> "Warning: pg_connect() unable to connect to PostgreSQL server: FATAL: IDENT
> authentication failed for user "joe""
Ident maps other than sameuser are defined in the file pg_ident.conf in
the data directory, which contains lines of the general form:
map-name ident-username database-username
So you might require to have appropriate entries in pg_ident.conf file.
Rather you can also change the authentication method to trust or password
or md5.
regards,
bhuvaneswaran
From: | Pat <pat(at)oggtheora(dot)com> |
---|---|
To: | "A(dot)Bhuvaneswaran" <bhuvansql(at)myrealbox(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: configuring postgresql on the browser |
Date: | 2003-04-05 14:54:14 |
Message-ID: | 200304051654.14933.pat@oggtheora.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
> Ident maps other than sameuser are defined in the file pg_ident.conf in
> the data directory, which contains lines of the general form:
>
> map-name ident-username database-username
>
> So you might require to have appropriate entries in pg_ident.conf file.
>
> Rather you can also change the authentication method to trust or password
> or md5.
if I want to connect user 'joe' to db 'mydb', knowing that joe has the same
rights than postgres. what do I need to add to pg_ident.conf file? and how
come my webmin works great while my phppgadmin and my php apps don't?
thanx in advance
From: | Don Patou <pknoob(at)noos(dot)fr> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: configuring postgresql on the browser |
Date: | 2003-04-05 15:10:19 |
Message-ID: | 200304051710.19936.pknoob@noos.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
On Saturday 05 April 2003 06:52, you wrote:
> Ident maps other than sameuser are defined in the file pg_ident.conf in
> the data directory, which contains lines of the general form:
>
> map-name ident-username database-username
>
> So you might require to have appropriate entries in pg_ident.conf file.
>
> Rather you can also change the authentication method to trust or password
> or md5.
if I want to connect user 'joe' to db 'mydb', knowing that joe has the same
rights than postgres. what do I need to add to pg_ident.conf file? and how
come my webmin works great while my phppgadmin and my php apps don't?
thanx in advance
From: | Kevin Coyner <kevin(at)rustybear(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: configuring postgresql on the browser |
Date: | 2003-04-05 16:40:49 |
Message-ID: | 20030405164049.GA24483@rustybear.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
On Fri, Apr 04, 2003 at 11:18:41PM +0200, Don Patou wrote......
> I'm trying to get pgsql to work on my browser but I can't connect. It works
> great on the shell and the psql webmin module works great but when it comes
> to phppgadmin or connecting my php application I get a :
<snip>
> this is what's on my pg_hba.conf file maybe there's something wrong with it:
>
> local all all ident sameuser
> host all all 127.0.0.1 255.255.255.255 ident sameuser
> host all all 0.0.0.0 255.255.255.255 reject
I struggled with this for a while too, especially in terms of getting
phppgadmin to work.
I've got the following in my pg_hba.conf
local all all trust
host all all 127.0.0.1 255.255.255.0 md5
Also, in your postgresql.conf make sure you have tcpip_socket = 1 as
shown below.
# Connection Parameters
#
# TCP/IP access is allowed by default, but the default access given in
# pg_hba.conf will permit it only from localhost, not other machines.
tcpip_socket = 1
I think these were the only changes I had to make to get phppgadmin to
work on the localhost.
HTH.
Kevin
From: | Don Patou <pknoob(at)noos(dot)fr> |
---|---|
To: | Kevin Coyner <kevin(at)rustybear(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: configuring postgresql on the browser |
Date: | 2003-04-05 19:55:50 |
Message-ID: | 200304052155.50370.pknoob@noos.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
> local all all trust
> host all all 127.0.0.1 255.255.255.0 md5
>
>
ok thanx a lot it worked just great.