There's a lot of manual patching involved, and little gotchas in a few places. If you have some experience with C and Makefiles, it's not too hard to get this module working, but if not, it will be very difficult until it becomes part of the distribution (and then, it'll just be a configure option, like ./configure --with-auth=ldap ;-)
Basically, hack up the Makefile so that the AUTHOBJECT is defined to be authldap.c (in the root dbmail-1.x/ directory) and make changes as needed in places where teh AUTHOBJECT is assumed to be in the same directory as the DBOBJECT's are. Also, add -lldap in the LIBS line, and then grep for db_connect() in the source code. Every db_connect() should be followed by an auth_connect(), likewise for db_disconnect(). Take a shot at compiling, and hack until it works ;-) For the dbmail.conf file, see back a few posts and I listed the options. Aaron On Tue, 28 Jan 2003, Honghai Gu wrote: > How to use it > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Aaron Stone > Sent: Friday, January 24, 2003 8:18 PM > To: dbmail@dbmail.org > Subject: Re: [Dbmail] AuthLDAP sixth draft > > Way cool, thanks for the update! I'll keep on posting the core parts, > but > I've been collecting various little changes that make it all work. Once > you're ready to start the integration I'll flood you with patches ;-) > > Good luck with your work! > I hope that `extremely busy' is soon just `busy' :-) > > Aaron > > > On Fri, 24 Jan 2003, Roel Rozendaal - IC&S wrote: > > > Hi Aaron, > > > > many, many, many thanks for your work :-) > > > > we are extremely busy lately - i must admit that i haven't even looked > > into the code .. but i will soon and i am pretty confident that the > > code will be added shortly to the distribution. > > > > regards roel > > > > > > Aaron Stone heeft op vrijdag, 24 jan 2003 om 10:44 (Europe/Amsterdam) > > het volgende geschreven: > > > > > As I began moving from pure-testing to a production-test, I noticed > a > > > major problem: LDAP connections expire! This revision adds a > function > > > called auth_reconnect() which... reconnects... to the server. It > does > > > so > > > in the most dumb way possible, by killing and then recreating the > > > connection regardless of its current state. It works, though ;-) > > > > > > For a future revision, I'll find a better way to see if the LDAP > > > connection has gone stale and needs to be recreated, or if it's fine > > > and > > > just return right away to use what's there already. > > > > > > There's also a bug I found that if you have any of the dbmail.conf > > > values > > > for the fields set incorrectly, causing ldap_get_values to return > NULL, > > > we segfault. Oops! I'll address that shortly, too. > > > > > > Eelco, Roel... any indications about including this into the > > > distribution? > > > > > > Aaron > > > > > > <authldap.c><authtest.c> > > Met vriendelijke groet, > > > > > > Roel Rozendaal > > > > > > _________________________ > > R.A. Rozendaal > > ICT Manager > > IC&S > > T: +31 30 2322878 > > F: +31 30 2322305 > > www.ic-s.nl > > > > _______________________________________________ > > Dbmail mailing list > > Dbmail@dbmail.org > > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail >