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

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: PMC OS <pmcos-support(at)freenet(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?
Date: 2010-08-25 02:01:11
Message-ID: 4C747967.4030807@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 25/08/2010 3:02 AM, PMC OS wrote:
> I am new to Linux

[snip]

> Now I like to switch with the authentification to libpam-pgsql/libnss-pgsql2

Honestly, in most cases you'll be much better off managing
authentication with LDAP. It's a better design for the nature of
authentication and user data management, where it has to handle lots of
small read queries and only very rare writes. It also has better
replication.

Even if you're not using Samba, the smbldap-tools provide handy commands
to manage users in the LDAP directory, and the debian ldap-auth-client
package provides a convenient way to configure a client to authenticate
against the directory.

Initial setup takes a little learning, but is well worth it.

If you later find that you need to store user data in a relational
database for some reason, you can even configure slapd to use the
database as a backend, so you're using PostgreSQL behind the scenes but
your clients still talk LDAP. I've never found the need, though; I run
the network at the business I'm sysadmin at with pure LDAP
authentication (slapd, berkely db backend) quite happily.

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

Even via "psql -h 192.168.0.3" ?

Can you ping it?

If you run "ps aux | grep postgres" on the server, are there any
postgresql processes running?

If you run "psql" on the server, can it connect? If not, what's the
error message?

If you look at /var/log/postgresql on the server, what are the last few
lines in the logs?

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Palmer 2010-08-25 04:31:59 Re: Win32 Backend Cash - pre-existing shared memory block is still in use
Previous Message PMC OS 2010-08-24 19:53:21 Re: How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?