Re: LDAP authentication

From: Fathi Ben Nasr <fathi(dot)engineer(at)gnet(dot)tn>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: LDAP authentication
Date: 2002-10-24 07:53:17
Message-ID: 200210241051.g9OApGv05892@smtp.planet.tn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)postgresql(dot)org)
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

(See attached file: smime.p7s)

Attachment Content-Type Size
=?iso-8859-1?Q?smime.p7s?= application/octet-stream 1.9 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brett Elliott 2002-10-24 08:05:26 Thoughts on 7.3b3 in production?
Previous Message Tommi Maekitalo 2002-10-24 06:18:43 Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8