[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Compiling pam_ldap w/ openldap
Scott Robertson wrote:
> Is it possible to compile pam_ldap with openldap libraries? Can anyone
> point me to some documentation if it exists? I tried contacting padl.com
> but have not received a response from them as of yet.
Yes, it is. The problem is that OpenLDAP is v2 compliant, but defines
LDAP_VER3 or something like that. Now, pam_ldap merely checks
for the existence of LDAP_VER3 flag (or whatever stands for it, I don't
have the source code here), and not for the current version.
You should change all the #ifdefs involving the current protocol version
in order to compile with OpenLDAP. Moreover, since OpenLDAP uses
libtool, you should compile OpenLDAP with dynamic library support
(use ./configure --enable-shared ) and modify pam_ldap's Makefile
to explicitly link to the correct libldap.so, liblber.so.
I repeat, now I don't have access to my sources (I'm moving), but in a few
days I can send you my patch to pam_ldap (I haven't mentioned it yet in
the mailing list since I'm still testing it). Anyway these are the basic
chances
that are needed to compile it with OpenLDAP. You can easily try yourself.
Bye, Pierangelo.
--
Pierangelo Masarati | voice: +39(02)2399.8393
Dip. Ing. Aerospaziale | fax: +39(02)2399.8334
via La Masa 34 |
20158 Milano, Italy | mailto:masarati@aero.polimi.it
http://diampp1.aero.polimi.it/~masarati/ando-index.html