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

Re: Ldap ad with invalid structural object class error



> HI,
>
> I have modified my ldif to :
>
> ------------------------------------------------
> dn: cn=Manager, dc=CLIENT8, dc=MYTESQ, dc=COM
> objectclass: dcObject
> dc: CLIENT8.MYTESQ.COM
> objectclass: organization
> o: Example Company
> ------------------------------------------------
> But, another error show :
>
> ------------------------------------------------
> [root@client8 sbin]# ldapadd -x -D
> "cn=Manager,dc=CLIENT8,dc=MYTESQ,dc=COM" -W -f add.ldif
> Enter LDAP Password:
> adding new entry "cn=Manager, dc=CLIENT8, dc=MYTESQ, dc=COM"
> ldap_add: No such object
>
It seems that you have no parent objects. OR you must change 'suffix' in 
slapd.conf to 'dc=CLIENT8,dc=MYTESQ,dc=COM'.

And, of course, you can not authenticate with a record that hasn't been added 
yet.

_Ace




> ------------------------------------------------
>
> Why ? And , how to make use of the default schema so that I don't have
> any problem on adding in a new entry ? (maybe modify or delete later).
>
> I just want to add some entries to LDAP db so that I can continue to my
> research on JAAS.
>
> Thanks in advanced again.
>
> Regards,CL