[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sendmail
Subject:    sendmail with ldap compilation problems.
From:       pavireddy02 () yahoo ! com (pavithra)
Date:       2002-12-31 7:20:50
[Download RAW message or body]

Hi,
I am trying to compile sendmail 8.12.7 with ldap support.
I have installed ldap 2.0.27 on my system.
It is working fine I can add and query for the records.
Sendmail also compiled with ldap with no errors 
but if I run sendmail it says 
" 554 5.0.0 /etc/mail/sendmail.cf: line 148: readcf: map ldapmh: class
ldap not available "

this is my site.config.m4 file details :
APPENDDEF(`confMAPDEF', `-DNEWDB')
APPENDDEF(`confMAPDEF', `-DLDAPMAP')
APPENDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.4.1/include')
APPENDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.4.1/lib')
APPENDDEF(`confLIBS', `-ldb')
APPENDDEF(`confENVDEF', `-DSASL')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')
APPENDDEF(`confLIBS', `-lldap -llber')


this is the details of my sendmail.mc file
FEATURE(`mailertable')
FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
FEATURE(`access_db')
FEATURE(ldap_routing)
LDAPROUTE_DOMAIN(test.com)
define(confLDAP_DEFAULT_SPEC, -h 192.168.1.22 -b dc=test,dc=com)
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `ldap:')
MAILER(local)
MAILER(smtp)
MAILER(procmail)dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN ')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN ')dnl


while comiling I am not getting any errors at all.
It compiles fine.
cc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP -DSASL      -c
-o collect.o collect.c
cc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP -DSASL      -c
-o conf.o conf.ccc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP
-DSASL      -c -o control.o control.c
cc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP -DSASL      -c
-o convtime.o convtime.c
cc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP -DSASL      -c
-o daemon.o daemon.c
cc -O2 -I. -I../../include  -DNEWDB -DNEWDB -DLDAPMAP -DSASL      -c
-o deliver.o deliver.c


but I think it is not added LDAP support.
Have I done something wrong with the configuration ?
Can someone let me know where I am going wrong ??
thanks,
pavithra


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic