Re: Problemas para configurar el pg_hba.conf

From: "Damian Culotta" <dculotta(at)fibertel(dot)com(dot)ar>
To: "Ayuda PostgreSql" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Problemas para configurar el pg_hba.conf
Date: 2005-05-19 22:48:48
Message-ID: 010201c55cc4$f87093c0$220f8c8c@7cfdculotta
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Logré resolverlo cambiando:

# All IPv4 connections from localhost
host all all 127.0.0.1 255.255.255.255 ident sameuser
host all all 140.140.15.43/32 md5

por

# All IPv4 connections from localhost
host all all 127.0.0.1 255.255.255.255 ident sameuser
host all all 140.140.15.43 255.255.255.0 md5

¿Es "politicamente" correcto lo que hice?. Y si esto es correcto, ¿la primer forma lo es también?.

Muchas gracias.

----- Original Message -----
From: Damian Culotta
To: Ayuda PostgreSql
Sent: Thursday, May 19, 2005 7:06 PM
Subject: [pgsql-es-ayuda] Problemas para configurar el pg_hba.conf

Buenas tardes lista.
Tengo un problema quetiendo conectarme a PostgreSql (ubicado en un Linux) desde el PgAdmin III en Windows.

El pg_hba.conf tiene las siguientes líneas (cosa que en otros linux con el mismo postgresql me funciona).

# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
# Database administrative login by UNIX sockets
local all postgres ident sameuser
#
# All other connections by UNIX sockets
local all all ident sameuser
#
# All IPv4 connections from localhost
host all all 127.0.0.1 255.255.255.255 ident sameuser
host all all 140.140.15.43/32 md5
#
# All IPv6 localhost connections
host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ident sameuser
host all all ::ffff:127.0.0.1/128 ident sameuser
#
# reject all other connection attempts
host all all 0.0.0.0 0.0.0.0 reject

Mi problema es que en este otro servidor (los dos tienen Ubuntu con PostgreSql 7.4), no logro hacer la conexión porque me dice que:

"Error connecting to the server: FATAL: no pg_hba.conf entry for host 140.140.15.43, user "postgres", database "template 1", SSL off".

Ahroa bien, si le quito el /32 a la IP y dejo 255.255.255.0 me permite entrar, pero desde cualquier IP.

Lo que me descolca es que a un servidor me conecto con esa configuración y al otro no. ¿Alguna sugerencia?.

Desde ya, muchas gracias.

Damián

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message FENALCO - Mauricio Henao 2005-05-19 22:53:34 RE: No funciona Select
Previous Message Alvaro Herrera 2005-05-19 22:47:16 Re: No funciona Select