[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Ldap modify error !
Hi all ...
I'm new to OpenLDAP. I have read the documentation, but i don't know how
to resolv this beginner problem.
I have instaled the OpenLDAP from ports. I use FreeBSD 4.10.
i have modify the slapd.conf .. :
### slapd.conf
include /usr/local/etc/openldap/schema/core.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
defaultaccess read
access to *
by self write
by * read
#######################################################################
# BDB database definitions
#######################################################################
database ldbm
suffix "dc=rocs,dc=ro"
rootdn "cn=root,dc=rocs,dc=ro"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
#rootpw secret
rootpw {CRYPT}/SxOqDrIx3fzs
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/db/openldap-data
# Indices to maintain
index cn,sn,uid pres,eq,approx,sub
index objectClass eq
when i try to add an entry in ldap, i recive this error !
#### test.ldif ####
su-2.05b# cat test.ldif
dn: dc=rocs,dc=ro
objectClass: dcObject
objectClass: organization
dc: rocs
o: ROCS Corporation
description: The ROCS Corporation
bash# ldapmodify -r -D 'cn=root,dc=rocs,dc=ro' -W < test.ldif
modifying entry "dc=rocs,dc=ro"
ldap_modify: No such object (32)
I have try the luma utility ... but i recive another error when i try to
browse the ldap ...
Error during LDAP search request
Reason: {'info': '', 'desc': 'No such object'}
Plese tell me what i do wrong ?
Thanks