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

Can't set namingContext properly

I'm running OpenLDAP 2.2.19-1 on a Win2K box.  It seems to start up
all right, but I can't seem set the org name correctly, and it rejects
my init.ldif file (ldif and conf files listed at the bottom).

ldapsearch returns this:

C:\openldap>ldapsearch -x -s base (objectclass=*) namingContexts
# extended LDIF
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: namingContexts

namingContexts: dc=my-domain,dc=com

When I try to import my initial lidf file, I get this:

slapadd: line 6: database (dc=my-domain,dc=com) not configured to hold

Here is the conf file:
ucdata-path	C:/openldap/ucdata
include	C:/openldap/etc/schema/core.schema

#pidfile	C:/openldap/var/slapd.pid
#argsfile	C:/openldap/var/slapd.args

database	bdb
suffix		"dc=example,dc=org"
rootdn		"cn=Manager,dc=example,dc=org"
namingContexts:    dc=my-domain,dc=com
rootpw		secret

directory	C:/openldap/var/openldap-data

index	objectClass	eq

And here is the init.ldif file:
dn: dc=example,dc=org
objectclass: dcObject
objectclass: organization
o: example.org
dc: example

dn: cn=Manager,dc=example,dc=org
objectclass: organizationalRole
cn: Manager

Any idea what I'm doing wrong?  Thanks in advance.