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

Re: Can't set namingContext properly



Whup - the line in ldap.conf that began with "namingContexts" was a
mistake and doesn't actually appear in the conf file.


On Thu, 3 Mar 2005 13:38:04 -0900, Lauren Horn <laurenh@gmail.com> wrote:
> 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
> #
> 
> #
> dn:
> 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
> "dc=example,dc=org"
> ========================
> 
> 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.
> 
> -Lauren
>