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

Why I can't add entries???



Hello everyone, I'm running openldap-2.0.23 on Redhat Linux 7.2.
But when I add entry to my db, I've just encountered the problem:
Only the 'dn:o=Acme,c=US' has been added successfully and the others
failed. My slapd.conf and testdata.ldif are as follows:

1 slapd.conf
.............
include	       /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/corba.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/java.schema
include         /usr/local/etc/openldap/schema/krb5-kdc.schema
include         /usr/local/etc/openldap/schema/misc.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/openldap.schema
......
pidfile		/usr/local/var/slapd.pid
argsfile	/usr/local/var/slapd.args
..................
#######################################################################
# ldbm database definitions
#######################################################################

database	ldbm
#suffix		"dc=my-domain,dc=com"
suffix		"o=Acme,c=US"
#rootdn		"cn=Manager,dc=my-domain,dc=com"
rootdn		"cn=root,o=Acme,c=US"
..................
rootpw		xjtu
..................
directory	/usr/local/var/openldap-ldbm
..................
index	objectClass	eq

2 testdata.ldif
#AcmeDN
dn:o=Acme,c=US
objectClass:organization
o:Acme

#ManagersDN
dn:ou=Managers,o=Acme,c=US
objectClass:organizationalUnit
ou:Managers

#FirstManagerDn
dn:cn=Jason H. Smith,ou=Managers,o=Acme,c=US
objectClass:inetOrgPerson
cn:Jason H. Smith
sn:Smith
telephoneNumber:111-222-9999
mail:headhauncho@acme.com

#EmployeesDN
dn:ou=Employee,o=Acme,c=US
objectClass:organizationalUnit
ou:Employees

#FirstEmployeeDN
dn:cn=Ray D. Jones,ou=Employees,o=Acme,c=US
objectClass:inetOrgPerson
cn:Ray D. Jones
sn:Jones
telephoneNumber:444-555-8888
mail:jonesrd@acme.com
localityName:Houston

#SecondEmployeeDN
dn:cn=Eric S. Woods,ou=Employees,o=Acme,c=US
objectClass:inetOrgPerson
cn:Eric S. Woods
sn:Woods
telephoneNumber:444-555-6666
mail:woodses@acme.com
localityName:Houston

How can I solve the problem!!!
Please lend me a hand!!
Thanks in advance!!

David Hsu
Ph.D
Computer Science
Xi'an Jiaotong University
Xi'an China


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx