pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_hba.conf ---> problem??
9+ messages / 4 participants
[nested] [flat]

* pg_hba.conf ---> problem??
@ 2004-09-23 21:47  Victor Sanchez2 <victorss19@eresmas.com>
  0 siblings, 3 replies; 9+ messages in thread

From: Victor Sanchez2 @ 2004-09-23 21:47 UTC (permalink / raw)
  To: pgsql-jdbc

I use Debian. In one example (with user postgres) i obtain success:

sh-3.00$ psql -l
Listado de base de datos
Nombre | Dueño | Codificación
-----------+----------+--------------
mydb | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
test | postgres | SQL_ASCII
(4 filas)

The problem appears when i use tora or pgaccess, i can't connect to db.
The message is:

  Unable to connect to the database.
  FATAL: IDENT authentication failed for user "portgres"

Who/where is the possible problem?

I try:
   user: postgres
   pass: "mypass"
   port: 5432
   localhost
   db: mydb

Any answer?






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 21:53  Yi LIN <ylin30@cs.mcgill.ca>
  parent: Victor Sanchez2 <victorss19@eresmas.com>
  2 siblings, 1 reply; 9+ messages in thread

From: Yi LIN @ 2004-09-23 21:53 UTC (permalink / raw)
  To: Victor Sanchez2 <victorss19@eresmas.com>; +Cc: pgsql-jdbc

I will never use postgres since it maybe a keyword. :-)

Yi

On Thu, 23 Sep 2004, Victor Sanchez2 wrote:

> I use Debian. In one example (with user postgres) i obtain success:
>
> sh-3.00$ psql -l
> Listado de base de datos
> Nombre | Dueño | Codificación
> -----------+----------+--------------
> mydb | postgres | SQL_ASCII
> template0 | postgres | SQL_ASCII
> template1 | postgres | SQL_ASCII
> test | postgres | SQL_ASCII
> (4 filas)
>
> The problem appears when i use tora or pgaccess, i can't connect to db.
> The message is:
>
>   Unable to connect to the database.
>   FATAL: IDENT authentication failed for user "portgres"
>
> Who/where is the possible problem?
>
> I try:
>    user: postgres
>    pass: "mypass"
>    port: 5432
>    localhost
>    db: mydb
>
> Any answer?
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:00  Victor Sanchez2 <victorss19@eresmas.com>
  parent: Yi LIN <ylin30@cs.mcgill.ca>
  0 siblings, 1 reply; 9+ messages in thread

From: Victor Sanchez2 @ 2004-09-23 22:00 UTC (permalink / raw)
  To: Yi LIN <ylin30@cs.mcgill.ca>; +Cc: pgsql-jdbc

No, I think this isn't the problem. :)
I'm reading about pg_hba.conf and postgres.conf and is possible that the
problem is about it and this configure.

El jue, 23-09-2004 a las 23:53, Yi LIN escribió:
> I will never use postgres since it maybe a keyword. :-)
> 
> Yi
> 
> On Thu, 23 Sep 2004, Victor Sanchez2 wrote:
> 
> > I use Debian. In one example (with user postgres) i obtain success:
> >
> > sh-3.00$ psql -l
> > Listado de base de datos
> > Nombre | Dueo | Codificacin
> > -----------+----------+--------------
> > mydb | postgres | SQL_ASCII
> > template0 | postgres | SQL_ASCII
> > template1 | postgres | SQL_ASCII
> > test | postgres | SQL_ASCII
> > (4 filas)
> >
> > The problem appears when i use tora or pgaccess, i can't connect to db.
> > The message is:
> >
> >   Unable to connect to the database.
> >   FATAL: IDENT authentication failed for user "portgres"
> >
> > Who/where is the possible problem?
> >
> > I try:
> >    user: postgres
> >    pass: "mypass"
> >    port: 5432
> >    localhost
> >    db: mydb
> >
> > Any answer?
> >
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> >     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> >
> >
> 




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:06  Jan de Visser <jdevisser@digitalfairway.com>
  parent: Victor Sanchez2 <victorss19@eresmas.com>
  2 siblings, 1 reply; 9+ messages in thread

From: Jan de Visser @ 2004-09-23 22:06 UTC (permalink / raw)
  To: pgsql-jdbc

On September 23, 2004 05:47 pm, you wrote:
>   FATAL: IDENT authentication failed for user "portgres"

You mistyped your username.

HTH,

JdV!!

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser@digitalfairway.com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:14  Victor Sanchez2 <victorss19@eresmas.com>
  parent: Jan de Visser <jdevisser@digitalfairway.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Victor Sanchez2 @ 2004-09-23 22:14 UTC (permalink / raw)
  To: Jan de Visser <jdevisser@digitalfairway.com>; +Cc: pgsql-jdbc

El vie, 24-09-2004 a las 00:06, Jan de Visser escribió:
> On September 23, 2004 05:47 pm, you wrote:
> >   FATAL: IDENT authentication failed for user "portgres"
> 
> You mistyped your username.
> 
> HTH,
> 
> JdV!!

Why?

I connect with 'psql mydb' without problems (with user postgres) and 
password is correct when i login with postgres. Also, i can use
createdb, dropdb... without problems.
When i try to connect with tora i receive this message.




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:15  Jan de Visser <jdevisser@digitalfairway.com>
  parent: Victor Sanchez2 <victorss19@eresmas.com>
  2 siblings, 1 reply; 9+ messages in thread

From: Jan de Visser @ 2004-09-23 22:15 UTC (permalink / raw)
  To: pgsql-jdbc

On September 23, 2004 06:14 pm, you wrote:
> El vie, 24-09-2004 a las 00:05, Jan de Visser escribió:
> > On September 23, 2004 05:47 pm, you wrote:
> > >   FATAL: IDENT authentication failed for user "portgres"
                                                    ^^^^^^^^^^
portgres != postgres

> >
> > You mistyped your username.
> >
> > HTH,
> >
> > JdV!!
>
> Why?
>
> I connect with 'psql mydb' without problems (with user postgres) and
> password is correct when i login with postgres. Also, i can use
> createdb, dropdb... without problems.
> When i try to connect with tora i receive this message.

JdV!!

-- 
--------------------------------------------------------------
Jan de Visser                     jdevisser@digitalfairway.com

                Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:17  John R Pierce <pierce@hogranch.com>
  parent: Victor Sanchez2 <victorss19@eresmas.com>
  0 siblings, 1 reply; 9+ messages in thread

From: John R Pierce @ 2004-09-23 22:17 UTC (permalink / raw)
  To: Victor Sanchez2 <victorss19@eresmas.com>; Yi LIN <ylin30@cs.mcgill.ca>; +Cc: pgsql-jdbc

>> >   Unable to connect to the database.
>> >   FATAL: IDENT authentication failed for user "portgres"

> I'm reading about pg_hba.conf and postgres.conf and is possible that the
> problem is about it and this configure.

I would not use IDENT authentication (specified in pg_hba.conf) under any 
circumstances I can think of.   Either use TRUST or use MD5, I always use 
MD5 once the DBA accounts are established and passworded.





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:24  Victor Sanchez2 <victorss19@eresmas.com>
  parent: Jan de Visser <jdevisser@digitalfairway.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Victor Sanchez2 @ 2004-09-23 22:24 UTC (permalink / raw)
  To: Jan de Visser <jdevisser@digitalfairway.com>; +Cc: pgsql-jdbc

El vie, 24-09-2004 a las 00:15, Jan de Visser escribió:
> On September 23, 2004 06:14 pm, you wrote:
> > El vie, 24-09-2004 a las 00:05, Jan de Visser escribió:
> > > On September 23, 2004 05:47 pm, you wrote:
> > > >   FATAL: IDENT authentication failed for user "portgres"
>                                                     ^^^^^^^^^^
> portgres != postgres
> 

Sorry, I want to write "postgres" :)





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pg_hba.conf ---> problem??
@ 2004-09-23 22:51  Victor Sanchez2 <victorss19@eresmas.com>
  parent: John R Pierce <pierce@hogranch.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Victor Sanchez2 @ 2004-09-23 22:51 UTC (permalink / raw)
  To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-jdbc

Whit line:

    host all all 127.0.0.1 255.255.255.255 trust sameuser

the problem finisk, all is ok.

Thanksss :)

El vie, 24-09-2004 a las 00:17, John R Pierce escribió:
> >> >   Unable to connect to the database.
> >> >   FATAL: IDENT authentication failed for user "portgres"
> 
> > I'm reading about pg_hba.conf and postgres.conf and is possible that the
> > problem is about it and this configure.
> 
> I would not use IDENT authentication (specified in pg_hba.conf) under any 
> circumstances I can think of.   Either use TRUST or use MD5, I always use 
> MD5 once the DBA accounts are established and passworded.
> 
> 




^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2004-09-23 22:51 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 21:47 pg_hba.conf ---> problem?? Victor Sanchez2 <victorss19@eresmas.com>
2004-09-23 21:53 ` Yi LIN <ylin30@cs.mcgill.ca>
2004-09-23 22:00   ` Victor Sanchez2 <victorss19@eresmas.com>
2004-09-23 22:17     ` John R Pierce <pierce@hogranch.com>
2004-09-23 22:51       ` Victor Sanchez2 <victorss19@eresmas.com>
2004-09-23 22:06 ` Jan de Visser <jdevisser@digitalfairway.com>
2004-09-23 22:14   ` Victor Sanchez2 <victorss19@eresmas.com>
2004-09-23 22:15 ` Jan de Visser <jdevisser@digitalfairway.com>
2004-09-23 22:24   ` Victor Sanchez2 <victorss19@eresmas.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox