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

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



Hello Dusty,

Sorry for big delay.

I've successfully setuped and configured OpenLDAP 2.3 from current
ports tree. Also I've rebuilt software, depended from LDAP libraries:

Apache2 + Subversion
Exim
ProFTPD

I prefer build software from ports on FreeBSD. To change default
dependencies for software, I've added to /etc/make.con option

WANT_OPENLDAP_VER=23

and rebuilt software. Exim need in WITH_OPENLDAP_VER=23 compile
option. So, FreeBSD works OK now.


I have a problem with RedHat 9. It has

$ rpm -qa | grep openldap
openldap-devel-2.0.27-8
openldap-2.0.27-8
openldap-clients-2.0.27-8

OpenLDAP software. I need upgrade it to 2.3.11 version. Does anybody
have RPM ore SPEC file for this OS?


Friday, November 11, 2005, 9:15:17 PM, you wrote:

>> 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.4.2.52.1
> patch -p0 < ../patch.4.2.52.2
> patch -p0 < ../patch.4.2.52.3
> patch -p0 < ../patch.4.2.52.4
> patch -p0 < ../openldap-2.3.x/build/BerkeleyDB42.patch
> cd build_unix
> ../dist/configure
> make
> 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
> make test
> make install

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

> $ 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



-- 
Best regards,
 Sergey                            mailto:ksa@uaic.net