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

Re: ldapadd: no attributes...... PROBLEM SOLVED!THANKS



I forgot to cut and paste the "myldif1.ldif" file. I did actually
have entries but there was a missing  "dn: o=my company, c=JP".
My database is populated now! Thanks heaps.

Kristina

At 00:55 99/11/09 -0500, you wrote:
> > I  have corrected the options -d to -D and removed -W.
> you'll want to have at least -w [password here]
> 
> > Here are the full details.
> > Can someone tell me what could be causing the error below:
> > 
> > ***********:
> > 
> > My  "myslapd.conf" file used to start SLAPD has the following entries:
> > 
> > suffix          "o=company, c=JP"
> > directory       /usr/local/LDBM
> > rootdn          "cn=root, o=company, c=JP"
> > password        password
> > 
> > My  "ldap.conf" looks like this:        
> > base    o=company, c=JP
> > host    ldaptest
> > 
> > My "myldif .ldif" file looks like this:
> > 
> > 
> > AT THE COMMAND:
> > ldapadd -D "cn=root, o=company, c=JP"  < myldif.ldif
> > 
> > I GET THE FOLLOWING ERROR:
> > ldapadd: no attributes to change or add (entry Segmentation Fault
> >  (core dumped)
> 
> umm.
> 
> your ldif file is empty.
> that is typically a bad thing.
> 
> try to populate the ldif then add it.
> 
> like maybe with:
> -----------------------------------
> dn: o=company, c=JP
> o: My Company in Japan
> objectclass: organization            
> ----------------------------------
> 
> try and add that.
> 
> 
> -sv
>