Re: User Zugriffe ueber tcp

From: Frank Habermann <postgres(at)lordlamer(dot)de>
To: pgsql-de-allgemein(at)postgresql(dot)org, pgusers(at)postgres(dot)de
Subject: Re: User Zugriffe ueber tcp
Date: 2005-04-19 19:05:53
Message-ID: 200504192105.53530.postgres@lordlamer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein

hallo nochmal!

hab das jetzt nochmal zu hause getestet.

hab dann das jetzt auch mal mit psql ausgetestet so wie du. damit hat es
richtig funktioniert mit trust wie es sein sollte. aber mit md5 und password
konnte ich auch nicht mit gültigem passwort connecten.

das ist irgendwie sehr komisch alles. wieso verhält sich psql anders als
phppgadmin wenn ich connecte mit trust?

mfg frank

On Tuesday 19 April 2005 17:55, Andreas Seltenreich wrote:
> Frank Habermann schrob:
> > der betreffende abschnitt in der pg_hba.conf schaut so aus:
> > host all all 127.0.0.1 255.0.0.0 trust
>
> Also ich hab' nun genau diese Zeile in eine test-pg_hba.conf gesteckt,
> und die Verbindung wird wie dokumentiert ohne Passwortabfrage
> hergestellt:
>
> --8<---------------cut here---------------start------------->8---
> $ echo host all all 127.0.0.1/32 trust > data/pg_hba.conf
> $ pg_ctl -D data/ -o -p6666 start
> $ psql -h 127.0.0.1 -p 6666 template1
> Welcome to psql 8.1devel, 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
>
> template1=# \q
> --8<---------------cut here---------------end--------------->8---
>
> nun trust in md5 geändert, und ich werde wie erwartet nach dem
> Passwort gefragt:
>
> --8<---------------cut here---------------start------------->8---
> $ echo host all all 127.0.0.1/32 md5 > data/pg_hba.conf
> $ pg_ctl -D data/ -o -p6666 restart
> $ psql -h 127.0.0.1 -p 6666 template1
> Password:
> Welcome to psql 8.1devel, 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
>
> template1=# \q
> --8<---------------cut here---------------end--------------->8---
>
> > ich habe das getestet unter debian woody und sarge mit pgaccess und
> > phppgadmin.
>
> Das Problem konnte ich auch mit pgaccess nicht reproduzieren, sonst
> hätte ich empfohlen, mal auf deren Mailinglisten nachzufragen.
>
> HTH
> Andreas

In response to

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message Andreas Kretschmer 2005-04-20 04:54:18 Re: [despammed] Re: Frage zu INSERT mit mehreren FKs
Previous Message Andreas Seltenreich 2005-04-19 18:52:28 Re: Postgre Userzugriffe