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

Re: ldap_add problem



Mitrana Cristian wrote:
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).


  
I think you need to provide your password in the command line with "-w" option.