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

Re[2]: openldap-server-2.2.29: multimaster support

So install openldap 2.3 from source so you can continue to use openldap 2.2 from ports w/ the other packages that depend on it.

Just in case you try to do this, I thought I'd add my notes for you from when I did it on FreeBSD 5.4.

1.  Download Bekeley DB 4.2 w/ the 4 patches from sleepycat
2.  Download openldap 2.3
3.  Untar bdb
4.  Untar openldap23

Build BDB
cd db-4.2.52.NC
patch -p0 < ../patch.
patch -p0 < ../patch.
patch -p0 < ../patch.
patch -p0 < ../patch.
patch -p0 < ../openldap-2.3.x/build/BerkeleyDB42.patch
cd build_unix
make install

This will put BDB in /usr/local/BerkeleyDB.4.2/

Build Openldap

export CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include"
export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"
export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.2/lib"

cd openldap-2.3.x
./configure --prefix=/usr/local/openldap237 --otherflagsyouwant
  *for example --enable-crypt if you want to enable storing pass in crypt
make depend
make test
make install

cd /usr/local/lib
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so

$ adduser
Username: ldap
Full name: ldap
Uid (Leave empty for default): 389
Login group [ldap]:
Login group is ldap. Invite ldap into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash nologin) [sh]: nologin
Home directory [/home/ldap]: /nonexistent
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no

vi /etc/syslog.conf
local4.*		/var/log/ldap.log

touch /var/log/ldap.log
/etc/rc.d/sylog stop
/etc/rc.d/sylog start

cd /usr/local/openldap23/var/openldap-data
vi DB_CONFIG (edit this appropriately)

write yourself a startup script in /usr/local/etc/rc.d
-you can probably edit the one you already have, if you want mine, I'll send it to you, just ask.

modify /usr/local/openldap23/etc/openldap/slapd.conf and import your db w/ slapcat

-Dusty Doris