[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_add_s: Object class violation when I add an alias entry into ldap server.
Title: 邮件
Could some body help me
investigate this problem?
I'm using openldap 2.1.7, and
it has the following data:
bash-2.03$ ldapsearch -b
"o=ChinaTelecom,c=cn"
"objectClass=*"
o=ChinaTelecom,c=cn
objectClass=organization
o=ChinaTelecom
ou=Customers,o=ChinaTelecom,c=cn
objectClass=organizationalUnit
ou=Customers
custID=1,ou=Customers,o=ChinaTelecom,c=cn
objectClass=cust
custID=1
custName=Feng
Zejian
custPwd=111111
areaID=1
custID=2,ou=Customers,o=ChinaTelecom,c=cn
objectClass=cust
custID=2
custName=Gao
Peichun
areaID=1
When I add the following ldif
file customer2.ldif:
dn:
cn=A2,ou=Customers,o=ChinaTelecom,c=cn
objectClass: alias
objectClass:
aliasObject
aliasedObjectName:
custID=2,ou=Customers,o=ChinaTelecom,c=cn
cn: A2
using
command:
bash-2.03$ ldapadd -D
"cn=root,o=ChinaTelecom,c=cn" -w secret -f
customer2.ldif
I got the following
result:
adding new entry
cn=A2,ou=Customers,o=ChinaTelecom,c=cn
ldap_add_s: Object class
violation
Why?
Marshal