On Saturday 26 May 2007 14:14, Vijay Sankar wrote: > I have been using the openldap (openldap-server-2.3.33p1-bdb) from > ports and it works great when I use slurpd for replication. > > I would like to use syncrepl instead of slurpd, just to see what the > benefits are. However I don't know how to enable the dynamic backend > modules since they are not installed in /usr/local/libexec/openldap. > I tried to modify the Makefile with --enable-overlays > and --enable-modules but those attempts went down in flames. > > Is it possible to use syncrepl with openldap-server-2.3.33p1 on > OpenBSD 4.1? What are the steps? Please let me know if you are able > to help.
Just in case someone searches these archives looking to see how to do syncrepl with OpenLDAP on OpenBSD, here is what I had to do to add all the overlays, and backends, and so on. Normally I prefer using only the packages that are on the OpenBSD CD or using ports. I compiled OpenLDAP from source only because I do not know how to enable the dynamic modules and overlays when OpenLDAP is installed from packages -- so quite possibly there are much simpler ways of doing this and probably there are many good reasons why the ports maintainer did not want to enable overlays (if that is indeed the case). I will be grateful for any corrections/suggestions or if you have any thoughts on what other approaches would have been more appropriate than the stuff below. Here is the configure command I used: env CPPFLAGS="-I/usr/local/include/db4 -I/usr/local/include/sasl" \ LDFLAGS="-L/usr/local/lib/db4 \ -L/usr/local/share/libtool/libltdl \ -L/usr/local/lib/sasl2 -L/usr/local/lib" \ ./configure \ --prefix=/usr/local \ --enable-slapd \ --enable-cleartext \ --enable-crypt \ --enable-rewrite \ --enable-wrapper \ --with-cyrus-sasl=yes \ --enable-spasswd \ --enable-dnssrv \ --enable-ldap \ --enable-ldbm \ --enable-bdb \ --enable-meta \ --enable-null \ --enable-passwd \ --disable-ipv6 \ --disable-shell \ --enable-slurpd \ --enable-overlays=mod \ --with-tls \ --disable-sql Did a 'make depend' after the command above completed successfully and then a 'make test' to verify that everything especially syncrepl (test017 for refresh, test018 for persist, test019 for cascade, test043 for delta-syncrepl) works properly for the different backends on OpenBSD 4.1. Vijay > > Thanks very much, > > Vijay -- Vijay Sankar ForeTell Technologies Limited 59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6 Phone: +1 (204) 885-9535, E-Mail: [EMAIL PROTECTED]