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

Re: Problems with OpenLDAP 2.0.1 ...



This looks like a bug in 1.2.11 that it would accept "dn: dc=com".  Since
your suffix is "dc=myhost, dc=com", trying to add that DN should be an
error.  2.0.1 is catching it where 1.2.11 did not.  Trying to add an
object with any DN other that doesn't match your suffix should produce an
error, and/or a redirect.

Randy


> I have an ldif file called "base.ldif" containing:
> 
> dn: dc=com
> dc: com
> objectClass: top
> objectClass: domain
> 
> dn: dc=myhost,dc=com
> dc: myhost
> objectClass: top
> objectClass: domain
> 
> dn: ou=People,dc=myhost,dc=com
> ou: People
> objectClass: top
> objectClass: organizationalUnit
> 
> . . .
> 
> When I try running ldapadd in an OpenLdap 2.0.1:
> 
> ldapadd -D "cn=manager, dc=myhost, dc=com" -w sun -f base.ldif
> 
> I get the next error message:
> 
> adding new entry "dc=com"
> ldap_add: No such object
> 
> ldif_record() = 32
> 
> Someone knows why is that ? If I do the same in an OpenLDAP 1.2.11 and it works fine.
> 
> I would apreciatte yor answers.
> 
> Here is part of my slapd.conf in case it helps.
> 
> ######################################################### ldbm database definitions
> #######################################################
> 
> database        ldbm
> suffix          "dc=myhost, dc=com"
> directory       /usr/local/etc/openldap/pruebas 
> rootdn          "cn=manager, dc=myhost, dc=com"
> rootpw          sun
> #index          uid eq
> 
> # cleartext passwords, especially for the rootdn, should
> # be avoid.  See slapd.conf(5) for details.
> 
> 
> 
> 
> 
> _______________________________________________________________________
> 
> Free Unlimited Internet Access! Try it now! 
> http://www.zdnet.com/downloads/altavista/index.html
> 
> _______________________________________________________________________
> 
>