Hi,
I am getting object class violation error while creating admin account in setup.
slapd.conf is
#include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/mozillaabpersonalpha.schema
include /etc/openldap/schema/evolutionperson.schema
allow bind_v2
database bdb
suffix "dc=perp,dc=com"
rootdn "cn=admin,dc=perp,dc=com"
rootpw {SSHA}64u/C3sxsYsjBovGAVIzi0vhTIjbZiE/
directory /var/lib/ldap/test
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
loglevel 256
database monitor
allow onlu rootdn to read the monitor
access to attrs=userPassword
by dn=“cn=admin,dc=perp,dc=com” write
by anonymous auth
by self write
by * none
include /etc/openldap/acl_addressbook.conf
access to *
by dn=“cn=admin,dc=perp,dc=com” write
by * read
and .ldif file is
dn: dc=perp,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: perp.com
dc: perp
#structuralObjectClass: organization
#entryUUID: ff063be8-e824-102d-8203-1b472cb56647
#creatorsName: cn=admin,dc=perp,dc=com
#modifiersName: cn=admin,dc=perp,dc=com
#createTimestamp: 20090608030542Z
#modifyTimestamp: 20090608030542Z
#entryCSN: 20090608030542.203751Z#000000#000#000000
dn: o=perp.com,dc=perp,dc=com
o: perp.com
objectClass: organization
objectClass: top
dn: ou=accounts,o=perp.com,dc=perp,dc=com
ou: accounts
objectClass: organizationalUnit
objectClass: top
dn: ou=groups,o=perp.com,dc=perp,dc=com
ou: groups
objectClass: organizationalUnit
objectClass: top
dn: ou=contacts,o=perp.com,dc=perp,dc=com
ou: contacts
objectClass: organizationalUnit
objectClass: top
LDAP setting in setup are
ldap host:ldap://10.244.0.194
LDAP accounts context:ou=accounts,dc=perp,dc=com
LDAP search filter for accounts, default: “(uid=%user)”, %domain=eGW-domain:(uid=%user)
LDAP groups context:ou=groups,dc=perp,dc=com
LDAP rootdn (searching accounts and changing passwords):cn=admin,dc=perp,dc=com
LDAP encryption type:MD5
LDAP Default homedirectory prefix (e.g. /home for /home/username):/var/lib/ldap/perp
dont know something is missing or wrong