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

do you know how to install openldap in linux?



Hello,

I have some question about openldap. Hope get your help.

I checked www.openldap.org page.
If I may do this in linux:
1. run configure :

   ./configure

2. build the software:
   make depend
   make

3. test the build:
   cd tests
   make

4. install software:
   make install

5. create configuration file for slapd
   slapd.conf

6. start slapd:
   su root -c '/usr/local/libexec/slapd -f myslapd.conf'

7. create LDIF file

8. run ldapadd
ldapadd -D "cn=Manager, dc=mydomain, dc=com" -W < myldif.ldif

Are they right in linux OS?

but I got some error in there....

[root@server openldap-2.0.6]# make test
cd tests; make test
make[1]: Entering directory `/apps/openldap-2.0.6/tests'
ln: ./data: cannot overwrite directory
make[1]: [test-ldbm] Error 1 (ignored)
ln: ./schema: File exists
make[1]: [test-ldbm] Error 1 (ignored)
Initiating LDAP tests for LDBM...
>>>>> Executing all LDAP tests...
>>>>> Test Directory: .
>>>>> Backend: ldbm
>>>>> Starting test000-rootdse ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...

I got some error in there too.

[root@reg libexec]# ./slapd -d 65535 -f
/apps/OpenCA-0.2.0-4/misc/openldap/slapd.conf
@(#) $OpenLDAP: slapd 2.0.6-Release (Thu Jan 18 13:05:27 EET 2001) $
        lin@server.company.local:/apps/openldap-2.0.6/servers/slapd
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse(ldap:///)
daemon: socket() failed errno=22 (Invalid argument)
daemon: bind(6) failed errno=98 (Address already in use)
daemon: bind(6) failed errno=98 (Address already in use)
daemon: bind(6) failed
slapd stopped.
connections_destroy: nothing to destroy.

Do you know what happened?

Do you have any good idea.

Thanks.
HF:)