From: Dick Davies <rasputnik@hellooperator.net>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: PAM ldap
Date: Sun, 16 Jan 2005 09:10:30 +0000
Message-ID: <20050116091030.GC26970@lb.tenfour> (raw)
In-Reply-To: <782D2A81EC812642B857B03B506E0B4432637A@granite.omni.imsweb.com>
References: <782D2A81EC812642B857B03B506E0B4432637A@granite.omni.imsweb.com>
* Kavan, Dan (IMS) <KavanD@imsweb.com> [0149 18:49]:
>
> Hi, I'm running postgresql 8.0.rc5 on SUSE.
> I have the pg_hba.conf file configured with
> local all smith ident sameuser
> host all smith ident sameuser
>
> The way authentication works with that is that configuration is that if
> I'm logged in as smith with my company ldap server I can get in, but if
> I'm not directly logged in as smith, I can't get in. Having the word
> pam in this file at all causes an error. I'd like to use pam so
> postgres could do it's own ldap/pam lookups, but I keep getting an error
> that it doesn't know what pam is. I see in the logs that the pam server
> starts, but I still get an error.
You didn't show the broken config, but assuming it's something like
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
hostssl all all 127.0.0.1 255.255.255.255 pam
then perhaps you don't have pam support built into postgres?
> /etc/pam.d/postgresql
> auth required pam_unix2.so nullok
> account required pam_unix2.so
This is going to do unix auth, obviously, so you'll need to s/unix/ldap/ on that...
--
'You may need to metaphorically make a deal with the devil.
By 'devil' I mean robot devil and by 'metaphorically' I mean get your coat.'
-- Bender
Rasputin :: Jack of All Trades - Master of Nuns
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rasputnik@hellooperator.net
Subject: Re: PAM ldap
In-Reply-To: <20050116091030.GC26970@lb.tenfour>
References: <782D2A81EC812642B857B03B506E0B4432637A@granite.omni.imsweb.com> <20050116091030.GC26970@lb.tenfour>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox