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)