Hi,

I'm trying to get an ldap server working on my system (want to migrate 
NIS to LDAP).

I was hoping it would be as simple as installing openldap-server, 
editing the configuration file (/etc/openldap/slapd.conf) and starting 
the ldap service.

I guess it doesn't seem to work this way...

First of all, "/etc/init.d/ldap start" keeps on complaining about some 
certificate that needs to be built (eventhough it's really there alread).

This can be solved by moving the "fi" up a few lines:

--- ldap.orig   2002-04-20 18:45:28.000000000 +0200
+++ ldap        2002-04-20 18:45:46.000000000 +0200
@@ -78,9 +78,9 @@
                                                yes 
""|/usr/share/openldap/gencert.sh >/dev/null 2>/dev/null
                                            popd > /dev/null
                                fi
-                       fi
                        gprintf "\n To generate a self-signed 
certificate, you can use\n"
                        gprintf " the utility 
/usr/share/openldap/gencert.sh ...\n\n"
+                       fi
 
                        if ls /var/lib/ldap/*.gdbm > /dev/null 
2>/dev/null || :  ; then
                                gprintf " To convert a gdbm DB to a ldif 
file, you can use\n"

Next I still see:

# service ldap start
ldaps
 To convert a gdbm DB to a ldif file, you can use
 the utility /usr/sbin/slapcat-gdbm (actually openldap use
 Berkeley DB 3.x)...Starting slapd (ldap + ldaps):              [FAILED]

I've followed the instructions on

http://www.openldap.org/doc/admin/quickstart.html
    and
http://www.openldap.org/doc/admin/dbtools.html

but I can't manage to get the ldap server running. My hunch is that it's 
got todo with the ldap init script.

Has anybody else managed to get it working?

Stefan



Reply via email to