OpenLDAP jest implementacją open source protokołu Lightweight Directory Access Protocol.
soft@wega:~/openldap% ./drf_openldap-2.4.25_conf
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files. Use 'cc -flags' for details
MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast -xautopar
CPPFLAGS=-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.5.1/include -I/usr/local/include
CXXFLAGS=-fast -xautopar
LDFLAGS=-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.5.1/lib -R/usr/local/BerkeleyDB.5.1/lib -L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
Konfiguracja:
=============================================
configure [y|n] ?
y
Configuring OpenLDAP 2.4.25-Release ...
...
Making servers/slapd/backends.c
Add config ...
Add ldif ...
Add bdb ...
Add ldap ...
Making servers/slapd/overlays/statover.c
Please run "make depend" to build dependencies
=============================================
Kompilacja:
dmake [y|n] ?
y
Making depend in /home/soft/openldap/openldap-2.4.25
Entering subdirectory include
Making ldap_config.h
Entering subdirectory libraries
Making depend in /home/soft/openldap/openldap-2.4.25/libraries
Entering subdirectory liblutil
...
(cd .libs && rm -f libldap_r.la && ln -s ../libldap_r.la libldap_r.la)
cc -fast -xautopar -I../../include -I../../include -DLDAP_R_COMPILE -I./../libldap -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.5.1/include -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.5.1/include -I/usr/local/include -c apitest.c
/bin/sh ../../libtool --mode=link cc -fast -xautopar -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.5.1/lib -R/usr/local/BerkeleyDB.5.1/lib -L/usr/local/lib -R/usr/local/lib -o apitest apitest.o libldap_r.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lresolv -lgen -lnsl -lsocket
cc -fast -xautopar -o .libs/apitest apitest.o -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.5.1/lib -L/usr/local/lib ./.libs/libldap_r.so /home/soft/openldap/openldap-2.4.25/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lresolv -lgen -lnsl -lsocket -R/usr/local/openldap-2.4.25/lib -R/usr/local/ssl/lib -R/usr/local/BerkeleyDB.5.1/lib -R/usr/local/lib
...
Compilation successful
=============================================
Testowanie:
dmake test || dmake check [y|n] ?
y
cd tests; make test
make: Warning: Ignoring DistributedMake -m option
Initiating LDAP tests for BDB...
Running ./scripts/all for bdb...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse for bdb...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Using ldapsearch to retrieve the cn=Subschema...
Using ldapsearch to retrieve the cn=Monitor...
dn:
objectClass: top
objectClass: OpenLDAProotDSE
structuralObjectClass: OpenLDAProotDSE
configContext: cn=config
namingContexts: o=OpenLDAP Project,l=Internet
...
Using ldapdelete to delete entries on provider
Starting forwarders again
Using ldapdelete to delete 10 more entries on provider
Checking replication to ldap://localhost:9013/
Checking replication to ldap://localhost:9012/
Checking contextCSN
No race errors found after 1 iterations
>>>>> Test succeeded
>>>>> ./scripts/test061-syncreplication-initiation completed OK for hdb.
Instalacja po przełączeniu na roota.
# dmake install
Making all in /home/soft/openldap/openldap-2.4.25
Entering subdirectory include
Entering subdirectory libraries
Making all in /home/soft/openldap/openldap-2.4.25/libraries
Entering subdirectory liblutil
Entering subdirectory liblber
...
installing slapd.8 in /usr/local/man/man8
installing slapdn.8 in /usr/local/man/man8
installing slapindex.8 in /usr/local/man/man8
installing slappasswd.8 in /usr/local/man/man8
installing slapschema.8 in /usr/local/man/man8
installing slaptest.8 in /usr/local/man/man8
`install' is up to date.
# cd /usr/local
# ln -s openldap-2.4.25 openldap
# /usr/local/openldap/bin/ldapsearch -VV
ldapsearch: @(#) $OpenLDAP: ldapsearch 2.4.25 (May 20 2011 15:33:06) $
@wega:/home/soft/openldap/openldap-2.4.25/clients/tools
(LDAP library: OpenLDAP 20425)