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

Re: Naming Violation

dn: dc=test,dc=arkonnetworks,dc=com
dc: arkonnetworks
change to
dc: test

Norman Zhang wrote:

Would someone please give me a few pointers regarding the following error?

Norman Zhang

# ldapadd -x -D "cn=Manager,dc=test,dc=arkonnetworks,dc=com" -W -f entries.ldif

adding new entry "dc=test,dc=arkonnetworks,dc=com"
ldapadd: update failed: dc=test,dc=arkonnetworks,dc=com
ldap_add: Naming violation (64)
        additional info: naming attribute 'dc' is not present in entry

database        bdb
suffix          "dc=test,dc=arkonnetworks,dc=com"
rootdn          "cn=Manager,dc=test,dc=arkonnetworks,dc=com"
rootpw          secret

directory       /var/lib/ldap
checkpoint 256 5

index   objectClass,uid,uidNumber,gidNumber,memberuid   eq
index   cn,mail,surname,givenname               eq,subinitial

# more entries.ldif
dn: dc=test,dc=arkonnetworks,dc=com
objectclass: dcObject
objectclass: organization
o: Test Arkon Networks
dc: arkonnetworks

dn: cn=Manager,dc=test,dc=arkonnetworks,dc=com
objectclass: organizationalRole
cn: Manager