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

RE: Problem with dummy-setup


When you issue the ldapadd command, it will fill the directory with files.
On an empty database, I get the following:

version: 2

# filter: (objectclass=*)
# requesting: base namingContexts

# search result
search: 2
result: 32 No such object

when you run ldapadd use the following 
ldapadd -x -w secret -D "cn=admin,dc=pinguintown,dc=local" -f <file in ldif

Theodore Reph

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Alex Huth
Sent: Wednesday, December 18, 2002 3:12 PM
To: openldap-software@OpenLDAP.org
Subject: Problem with dummy-setup

Hi guys!

I´ve setup openldap like the quickstart guide told me. If i do a ldapsearch
get errors like the folowing. Till now i haven´t add any data.


include /etc/openldap/schema/core.schema

pidfile         /var/state/openldap/slapd.pid
argsfile        /var/state/openldap/args.pid

database ldbm
suffix          "dc=pinguintown,dc=local"
rootdn          "cn=admin,dc=pinguintown,dc=local"

rootpw secret

directory /var/state/openldap/openldap-ldbm

index   objectClass     eq

Now the search:

ldapsearch -x -b `` base `(objectClass=*)` namingContexts
version: 2

# filter: (objectclass=*)
# requesting: namingContexts

# search result
search: 2
result: 34 Invalid DN syntax
text: invalid DN

# numResponses: 1

Where is my mistake? What I´m wondering about is the empty folder where the 
database resists. Will this be created, when i add the first data?

So long ...

Alex Huth