My apologies, perhaps I am not quite up to date. I installed an LDAP
based Courier-IMAP mail server on a FreeBSD system some two
months ago and the only way it would build was to use the OpenLDAP
1.x libraries (as stated in the documentation at that time) - I did try to
use OpenLDAP 2 libraries just to see what happened - I cannot
remember the precise errors but it would not work.
And yes LDAP does replicate very well; I personally just prefer
MySQL - replication is not a big issue for us.
Regards
Courier-IMAP works fine with OpenLDAP 2.x, but you MUST
build it with the OpenLDAP 1.x libraries.
Why?
szafir:/etc/ldap# ldd /usr/lib/courier/authlib/authdaemond.ldap
libgdbm.so.1 => /usr/lib/libgdbm.so.1 (0x40019000)
libpam.so.0 => /lib/libpam.so.0 (0x4001f000)
libdl.so.2 => /lib/libdl.so.2 (0x40027000)
libldap.so.2 => /usr/lib/libldap.so.2 (0x4002b000)
liblber.so.2 => /usr/lib/liblber.so.2 (0x40051000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4005b000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4006c000)
libc.so.6 => /lib/libc.so.6 (0x4009b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401ad000)
libsasl.so.7 => /usr/lib/libsasl.so.7 (0x401c2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libdb2.so.2 => /lib/libdb2.so.2 (0x401cd000)
This is Debian package 'courier-ldap' and it is compiled with OpenLDAP 2.0
But IMO MySQL works better!
LDAP can replicate very nice.