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: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to setup PostgreSQL to work with libpam-pgsql/libnss-pgsql2?
Date: 2010-08-25 08:06:09
Message-ID: 4C74CEF1.6030808@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 25/08/10 14:18, PMC OS wrote:
> Good morning,
>
>> -----Ursprüngliche Nachricht-----
>> Von: Craig Ringer
>> 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.
>
> We are only 20 persones in total and do not have the need to handel several 100 or 1000 requests in a short time
>
> Also since we do much more with the database we need it anyway and LDAP would get its data from PostgreSQL... because I do not like to maintain two systems at once which can do the same job.

Well, fair enough then. Personally with that many people I'd certainly
want to use LDAP (for lower response latencies if nothing else), but
each to their own.

You'll probably want to use nscd on the client machine(s) to take some
of the load off Pg.

> Have now installed slapd on my OMAP L138 but now it has crashed the kernel and I cna not more boot the server because it want o init slapd and crash.

That's ... surprising.

Kernel panic? Or is it just that slapd is crashing?

> How does this manage the user accountts and there homes?
> It does not seem to create $HOME and copy the files from /etc/skel which I have already prepared...

Most likely the same way you'll be doing it with pam auth against
postgresql: pam_mkhomedir . It has a decent man page.

> I have not found this package
>
> apt-cache show ldap-auth-client
> W: Kann Paket ldap-auth-client nicht finden
> E: Keine Pakete gefunden

My bad. Looks like it's an Ubuntu extension, just a metapackage that
pulls in libnss-ldap and libpam-ldap and provides a bit of config
support for them.

--
Craig Ringer

Tech-related writing: http://soapyfrogs.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2010-08-25 08:10:44 Re: Win32 Backend Cash - pre-existing shared memory block is still in use
Previous Message wstrzalka 2010-08-25 07:15:33 Feature proposal