From: Fathi Ben Nasr <fathi.engineer@gnet.tn>
To: pgsql-general@postgresql.org
Subject: Re: LDAP authentication
Date: 24-Oct-2002 09:53:17 ZE2
Message-ID: <200210241051.g9OApGv05892@smtp.planet.tn> (raw)
References: <200210231942.g9NJgd802160@e3000b.state.ms.us>
<200210232229.39248.t.maekitalo@epgmbh.de>
Create a file named postgresql in your /etc/pam.d/ directory with this
content
#%PAM-1.0
auth required /lib/security/pam_ldap.so #nullok #set_secrpc
account required /lib/security/pam_ldap.so
and something like this in your pg_hba.conf
host all 10.0.0.0 255.0.0.0 pam
It worked for me. Unfortunately/fortunatly you have to create each user who
will
acces the database but this can be done easily (i.e. through a php script
on an
autheticated web location)
Fathi Ben Nasr
Tommi Mäkitalo a écrit :
> Postgresql supports pam. And there is pam_ldap. I haven't tried out yet.
But
> I'm sure you need to create users in postgresql. Just authentication
comes
> through pam. There is no nss_ldap as far as I know.
>
> Tommi
>
> Am Mittwoch, 23. Oktober 2002 21:38 schrieb Richard Ray:
> > Does anyone know if anyone has tried to use LDAP for authentication?
> > The management here is insisting on it. I'll write it from scratch if
> > neccassary. Any hints or pointers are appreciated.
> >
> > Thanks
> > Richard
> >
> > ---------------------------(end of broadcast)
---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
(See attached file: smime.p7s)
Attachments:
smime.p7s (application/octet-stream, 1.9K) download
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-general@postgresql.org
Cc: fathi.engineer@gnet.tn
Subject: Re: LDAP authentication
In-Reply-To: <200210241051.g9OApGv05892@smtp.planet.tn>
References: <200210231942.g9NJgd802160@e3000b.state.ms.us> <200210232229.39248.t.maekitalo@epgmbh.de> <200210241051.g9OApGv05892@smtp.planet.tn>
* 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