[Date Prev][Date Next]
Re: OpenLDAP client binaries and sendmail
I'd be very interested to know any success as I had the same
problem before with sendmail and LDAP, which I gave up eventually.
I've settled instead with qmail and the qmail-ldap patches
On Tue, Nov 02, 1999 at 07:45:40PM +0900, Kristina wrote:
> 1) I need the openldap client libaries.
> I DO NOT KNOW WHERE IN LDAP THEY EXIST!
> MAYBE, .../ldap/include???????
If you installed OpenLDAP yourself then you should know where
they are... Anyways, one way to know where the include files
is to run the following command "find / -name ldap.h". And
for the libraries, "find / -name libldap.a".
> 2)That I need to define the LDAPMAP macro in the makefile.
> 3)That I need to add -lldap -llber
> IS THIS DONE AT THE FILE .../sendmail8.9.3/src/BuildTools/OS/SunOS.5.7??????
That's one way, such that you'll have the following entries:
define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DLDAPMAP')
define(`confLIBS', `-lsocket -lnsl -lldap -llber')
Or, edit src/Makefile.m4:
MAPDEF= ifdef(`confMAPDEF', `confMAPDEF') -DLDAPMAP
LIBS= ifdef(`confLIBS', `confLIBS') -lldap -llber
Make sure you replace -I and -L to where you found the include and lib