Re: [GENERAL] postgres connection problem via python pg DBI

2008-06-05 Thread Dan Joo
Just solved it. For others, here is the solution. setsebool -P httpd_can_network_connect_db 1 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Joo Sent: Thursday, June 05, 2008 4:18 PM To: pgsql-general@postgresql.org Subject: [GENERAL] postgres connection problem

[GENERAL] postgres connection problem via python pg DBI

2008-06-05 Thread Dan Joo
Hi all, I have a problem connecting to postgres via the python pg module ONLY from the cgi-scripts. The command is: db=pg.connect('aqdev','localhost',5432,None,None,'postgres',None) >From the commandline the connection works great, but from a cgi-script it barfs with the following m

Re: [GENERAL] psql: FATAL: Ident authentication failedforuser"postgres"

2008-05-20 Thread Dan Joo
authentication failedforuser"postgres" On Tue, May 20, 2008 at 09:47:55AM -0700, Dan Joo wrote: > Is there a command that I can use to find out which file PG is looking > into for the settings in pg_hba.conf? Could it be that the config file > is not even titled "

Re: [GENERAL] psql: FATAL: Ident authentication failed foruser"postgres"

2008-05-20 Thread Dan Joo
: Re: [GENERAL] psql: FATAL: Ident authentication failed foruser"postgres" On Tue, May 20, 2008 at 08:50:16AM -0700, Dan Joo wrote: > The only non-commented lines are: > > [EMAIL PROTECTED] data]# cat pg_hba.conf | grep -v '^#' > > local all all

Re: [GENERAL] psql: FATAL: Ident authentication failed for user"postgres"

2008-05-20 Thread Dan Joo
trust Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karsten Hilbert Sent: Tuesday, May 20, 2008 8:51 AM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] psql: FATAL: Ident authentication failed for user"postgres" On Tue, May 20, 2008 at 0

Re: [GENERAL] psql: FATAL: Ident authentication failed for user "postgres"

2008-05-20 Thread Dan Joo
r besides the pg_hba.conf file? Thanks for your help, Dan From: Luigi Castro Cardeles [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 5:53 AM To: Dan Joo Subject: Re: [GENERAL] psql: FATAL: Ident authentication failed for user "postgres" hi, what's your mac

Re: [GENERAL] psql: FATAL: Ident authentication failed for user "postgres"

2008-05-19 Thread Dan Joo
Got it about cc'ing. Actually, I restarted postgres using: /etc/init.d/postgresql restart Any other suggestions? From: Chris [mailto:[EMAIL PROTECTED] Sent: Mon 5/19/2008 8:34 PM To: Dan Joo; pgsql-general@postgresql.org Subject: Re: [GENERAL]

[GENERAL] psql: FATAL: Ident authentication failed for user "postgres"

2008-05-19 Thread Dan Joo
Hi everyone, I am having problems logging into psql as a non-'postgres' user. /home/djoo[5:38pm]$ %psql kermit -U postgres psql: FATAL: Ident authentication failed for user "postgres" Below is a portion of the pg_hba.conf file, which I believe is configured so that a password is not