[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP client binaries and sendmail RESULTS!!!



MY RESULTS ARE HERE as promised!

I am replying to the original message I sent to the mailing list asking for
help on 
configuring Sendmail with OpenLDAP and BerkeleyDB.

A big thankyou to David and Mark for their help!  I managed to recompile 
Sendmail.8.9.3 and I'm here to give my results:

**********
STEP ONE:  I edited the .../Sendmail.8.9.3/BuildTools/OS/SunOS.5.7 file
like this:


#modified the following line:
#define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX')
define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DNEWDB -DLDAPMAP')

#modified the follwing line:
#define(`confINCDIRS', `-I/usr/local/bind/include -I/usr/local/include')
define(`confINCDIRS', `-I/usr/local/bind/include -I/usr/local/include
-I/usr/loc
al/BerkeleyDB/include')

#modified the followint line:
define(`confLIBDIRS', `-L/usr/local/bind/lib -L/usr/local/lib')
define(`confLIBDIRS', `-L/usr/local/bind/lib -L/usr/local/lib
-L/usr/local/Berke
leyDB/lib')

#modified the following line:
define(`confLIBS', `-lbind -lsocket -lnsl -lkstat') 
define(`confLIBS', `-lbind -lsocket -lnsl -lkstat -ldb -lldap -llber')

************
STEP TWO:  After compiling sendmail I tested for any errors.

I did    tail -f syslog     while I did

/etc/rc2.d/S88sendmail start

and I got the following error:

Nov  4 17:04:06 ldaptest sendmail[15607]: [ID 801593 FACILITY_AND_PRIORITY]
NOQU
EUE: SYSERR(root): hash map "Alias0": missing map file /etc/mail/aliases.db:
 No
such file or directory

and doing this got rid of the error!!!!!!!!!!!!!!  

/etc/mail/newaliases

I have never got this error before when compiling
sendmaill, so I beleive it may be due to the BerkeleyDB or LDAP!!!!!!!


*********The end.......but what do I DO FROM HERE!!!! mail500 or
PAM!!!!!!*********











At 19:45 99/11/02 +0900, you wrote:
> I have sendmail.8.9.3 and the latest stable version of OpenLDAP installed on
>  Solaris7
> I want to use OpenLDAP with sendmail.
> 
> I am making no progress.  I understand that I first need to link the openl
dap
> client libaries to compile sendmail with LDAP support.
> 
> How do I do this?
> I would very much appreciate precise detail on how to configure sendmail.
> Thankyou Kristina
> 
> ***FURTHER DETAILS: ***
>  I am referring to the document titled "Using LDAP with Sendmail 8.x"
> at http://www.stanford.edu/~bbense/Inst.html. It tells me basically three th
> ings:
> 
> 1) I need the openldap client libaries.
> I DO NOT KNOW WHERE IN LDAP THEY EXIST! 
> MAYBE, .../ldap/include???????
> 
> 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??????
>  and
> HOW!!!!!
> 
> I look forward to any help as I am absolutely stuck!!
>