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

Re: ldap_add problem



* Partha Puskur <ppuskur@desmac.com> [25-03-03 22:27]:
 
> Hi,
> 
> I need to barrow your brains.This subject has lot entries in list but could not 
> get my problem solved from it.
> 
> Thanks for your time.
> 
> I went through online documents and configure LDAP.
> I get this error of parent does not exist.Or in sufficient access.I can't trace 
> the problem.This is output I get for the commads.
> 
> Please shed some light,Thanks in Advance
> 
> 
> ################################################################################
> ##
> COMMAND >>ldapsearch -x -b '' -s base '(objectclass=*)'
> 
> OUTPUT>>
> version: 2
> 
> #
> # filter: (objectclass=*)
> # requesting: namingContexts 
> #
> 
> #
> dn:
> namingContexts: dc=example,dc=com
> 
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 2
> # numEntries: 1
> ################################################################################
> ###
> COMMAND >> ldapadd -x -h localhost -D "cn=root,dc=example,dc=com" -f just2.ldif
> 
> with this matter in ldif does give error
> -----just2.ldif-----
> dn: dc=example,dc=com
> objectClass: domain
> dc: example
> -------------------
> OUTPUT >>
> adding new entry "dc=example,dc=com"
> ldap_add:Insufficient access
> ldif_record()=50

 You have not write access to the entry, so the entry is not added.Check
your ACL configuration in slapd.conf and add this entry first, otherwise
you will not be able to add subsequent records in this subtree
(dc=example,dc=com).


> ################################################################################
> #####
> COMMAND >> ldapadd -x -h localhost -D "cn=root,dc=example,dc=com" -f just2.ldif
> 
> -------just2.ldif--------
> dn: ou=people,dc=example,dc=com
> ou: people
> objectClass: top
> objectClass: organizationalUnit
> ---------------------------
> OUTPUT >>
> adding new entry "ou=people,dc=example,dc=com"
> ldapadd: No such object
> 	 additional info:parent does not exist
> ldif_record()=32
> ################################################################################
> #######
> 

 This is obviously because the entry "dc=example,dc=com" (parent for
"ou=people..." ) does not exist (i.e. has not been added by the first
ldapadd operation).

hth,
mitu