How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?

From: PMC OS <pmcos-support(at)freenet(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?
Date: 2010-08-24 19:02:06
Message-ID: 3e435fb6602e2f39ddcee9f439d10ccc@email.freenet.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I am new to Linux and setup 6 Computers with Debian:

1) 2 Workstations
2) 2 Intranet Servers
3) PostgreSQL Server
4) Router

The two Intranet Servers are now working with NFSv4/TCP, Apache2 with suphp and php5, courier-imap/mta/mlm

My Router is working to and use IPT, bind9 and apache2 with mod_proxy forwarding traffic to the two Intranet Servers.

Also the Workstations are working fine.

Now I like to switch with the authentification to libpam-pgsql/libnss-pgsql2 but I hit a problem with the PostgreSQL, because it refuse any connections from the network.

I have setup in the postgresql.conf

listen_addresses = '192.168.0.3'

and in the pg_hba.conf

local all postgres ident sameuser
host system root 192.168.0.0/24 md5

now restarted postgresql and "system" with the psql commandline tool. Then imported the SQL Scheme from libpam-pgsql.

OK, now on a workstation I installed libpam-pgsql and libnss-pgsql2 leave a terminal open to revert the PAM/NSS files if something goes wrong and setup the files

/etc/pam.d/common-account
/etc/pam.d/common-auth
/etc/pam.d/common-password

to use the PostgreSQL database and now I was XXXX! nothing is working anymore. I can not even connect to the PostgreSQL server.

Can someone tell me please, how to setup PostgreSQL so I can use it with libpam-pgsql and libnss-pgsql2?

Thanks
PCMOS

freenetMail mobil – Alle E-Mails auf Ihrem Handy versenden und empfangen.
Jetzt kinderleicht und kostenlos einrichten. http://tls.freenet.de/tipp/handymail/index.html

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PMC OS 2010-08-24 19:53:21 Re: How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?
Previous Message David Pirotte 2010-08-24 18:37:33 subscribe