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

Re: Antwort: Re: Problem with ldapadd - parent does not exist



Hi


Did you initialized the database?
something like

slapadd -f /usr/local/etc/openldap/slapd.conf -l init.ldif

init.ldif lokks like
dn: dc=pingu,dc=de
objectclass: top
objectclass: dcobject
dc: pingu



On Mon, Jul 08, 2002 at 01:34:53PM +0200, Markus.Jung@de.tds-global.com wrote:
> 
> >>Hi
> 
> On Mon, Jul 08, 2002 at 01:11:35PM +0200, Markus.Jung@de.tds-global.com
> wrote:
> > Hi!
> >
> > I've tried to add entries to the OpenLDAP-Server but I only get the
> > error-message behind.
> >
> >
> > pingu:/etc/init.d# ldapadd -x -D "cn=admin,dc=pingu,dc=de" -W -f
> > "/root/ldif/newentry.ldif"
> > Enter LDAP Password:
> > adding new entry "cn=Markus Jung,dc=pingu,dc=de"
> > ldap_add: No such object
> >         additional info: parent does not exist
> >
> > What means this to me???
> > What do I have to do to make my ldapadd work??
> >
> 
> >>Can you show newentry.ldif? It looks like you don't have dc=pingu,dc=de.
> 
> Thank you for your help. Hope you have a idea ;o))
> 
> Here is the newentry.ldif:
> 
>   dn: cn=Markus Jung,dc=pingu,dc=de
>   cn: Markus Jung
>   sn: Jung
>   objectClass: top
>   objectClass: person
> 
> And here is the slapd.conf:
> 
>   include         /etc/ldap/schema/core.schema
>   include         /etc/ldap/schema/cosine.schema
>   include         /etc/ldap/schema/nis.schema
>   include         /etc/ldap/schema/inetorgperson.schema
> 
>   schemacheck     on
> 
>   pidfile         /var/run/slapd.pid
> 
>   argsfile        /var/run/slapd.args
> 
>   replogfile      /var/lib/ldap/replog
> 
>   loglevel        0
> 
>   database        ldbm
> 
>   suffix          "dc=pingu,dc=de"
> 
>   directory       "/var/lib/ldap"
> 
>   rootdn          "cn=admin,dc=pingu,dc=de"
> 
>   rootpw          secret
> 
>   index objectClass eq
> 
>   lastmod on
> 
>   access to attribute=userPassword
>         by dn="cn=admin,dc=pingu" write
>         by anonymous auth
>         by self write
>         by * none
> 
>   access to *
>         by dn="cn=admin,dc=pingu,dc=de" write
>         by * read
> 
>   access to dn=".*,ou=Roaming,o=morsnet"
>         by dn="cn=admin,dc=pingu" write
>         by dnattr=owner write
> 
>   sasl-secprops none
> 
> 
> Greetz,
> 
> Markus

-- 
------------------------------------------------ 
Sure, I'm paranoid! But am I paranoid enough? ;)
Tomas Hornicek  
Operation & Maintenance Administration  
Orange Slovensko a.s.
tomas.hornicek@orange.sk

- - - - - BEGIN GEEK CODE BLOCK - - - - -
Version: 3.12
http://www.geekcode.com
GCS/IT d- s+:+ a-- C++ UL++++$B++++S++++$ P- L+++ 
E--- W+++ N++ !o K- w O M- V- PS !PE Y PGP+++ !t 
!5 X !R tv-- b+ DI D+ G e h* r- y+
- - - - - END GEEK CODE BLOCK - - - - -