Subject: Re: openldap
To: Keith Mastin <kmastin@beechtree.ca>
From: Michael Neumann <uu9r@rz.uni-karlsruhe.de>
List: netbsd-help
Date: 09/05/2002 11:24:11
Keith Mastin wrote:
> I'm trying to set up openldap, following the administrators guide and 
> quickstart howto. Used the pkgsrc install. My slapd.conf file looks like 
> this:
> 
> database        ldbm
> suffix          "dc=mcleodlake,dc=com"
> rootdn          "cn=kmastin,dc=mcleodlake,dc=com"
> rootpw          hash:/etc/passwd
> directory       /var/openldap/ldap-data
> index   objectClass     eq
> 
> After starting slapd:
> bash-2.05# /usr/local/libexec/slapd
> ... or even
> bash-2.05# su root -c /usr/local/libexec/slapd
> (doesn't matter which one I do, the results are the same)
> 
> In testing the config I get this: 
> 
> bash-2.05# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
> ldap_bind: Can't contact LDAP server
> 
> ps shows no slapd server running. There was no error when starting the 
> server, so I assume that I don't need to add a slapd=YES line to rc.conf, 
> do I?

Start slapd with the debug option -d:

/usr/local/libexec/slapd -d 63

Then you'll see what happens.


Regards,

  Michael