Hello all,
I am new to openldap and am just getting starting with it. I have edited the slapd.conf and created a ldif file according to the documentation provided at openldap.org. But when I tried to execute ldapadd, an error occured. This is the error message i got.:
[root@triveni ~]# ldapadd -x -D "cn=root,dc=ejyothi,dc=net" -W -f ejyothi.ldif
Enter LDAP Password:
adding new entry "dc=ejyothi,dc=net"
ldap_add: Naming violation (64)
additional info: naming attribute 'dc' is not present in entry
My configuration is as follows:
Distro: Fedora Core 4

database bdb
suffix "dc=ejyothi,dc=net"
rootdn "cn=root,dc=ejyothi,dc=net"
rootpw xxxxxx
The ldif file I tried is :
dn: dc=ejyothi,dc=net
objectclass: dcObject
objectclass: organization
o: Example Company

dc: ejyothi
dn: cn=root,dc=ejyothi,dc=net
objectclass: organizationalRole
cn: root
I can't get what had gonw wrong with it. please advice.