Hi,
I'm a newbie in LDAP. I installed LDAP and slapd is runing fine.
When i try to :
ldapadd -x -D "cn=moe,dc=example,dc=com" -W -f example.ldif
I get:
ldapadd: no attributes to change or add (entry="dc=example,dc=com objectclas
s: dcObject objectclass: organization o: emanagelaw dc: example
dn: cn=moe,dc=example,dc=com objectclass: organizationalRole cn: moe").

my ldif file looks like this:

dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example
dn: cn=moe,dc=example,dc=com
objectclass: organizationalRole
cn: moe

my slapd.conf looks like this.

database bdb
suffix "dc=example,dc=com"
rootdn "cn=moe,dc=example,dc=com"
rootpw secret
directory /usr/local/var/openldap-data

Thanks.