I have followed all steps for openldap installation
and was able to succesfully run the slapd daemon
I even added ldapadd -x -D "cn=Manager,dc=mydomain,dc=com" -W -f example.ldif
I added some data using the above command
the contents of example.ldif is

Code:
dn: dc=mydomain,dc=com
objectclass: dcObject
objectclass: organization
o: mydomain
dc: mydomain

dn: cn=Manager,dc=mydomain,dc=com
objectclass: organizationalRole
cn: Manager
Now I am trying to add the file inetorgperson.ldif (available in the schema folder)
to the directory
using the following command
Code:
dapadd -x -D "cn=Manager,dc=mydomain,dc=com" -W -f /usr/local/etc/openldap/schema/inetorgperson.ldif
but I am getting the following error
Code:
Enter LDAP Password:
adding new entry "cn=inetorgperson,cn=schema,cn=config"
ldap_add: Insufficient access (50)
I have added the following statement to slapd.conf
Code:
access to * by * write
to no use
I am not understanding where I am going wrong
not mentioning the rootdn gives an error saying
adding new entry "cn=inetorgperson,cn=schema,cn=config"
ldap_add: Strong(er) authentication required (8)
additional info: modifications require authentication

If anyone has solution to the same
please reply
the contents of my slapd file are
Code:
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/java.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
#include /usr/local/etc/openldap/schema/inetorgperson.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args

# Load dynamic backend modules:
# modulepath /usr/local/libexec/openldap
# moduleload back_bdb.la
# moduleload back_hdb.la
# moduleload back_ldap.la

# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

#allow bind_anon_cred
#disallow bind_simple
# Sample access control policy:
#   Root DSE: allow anyone to read it
#   Subschema (sub)entry DSE: allow anyone to read it
#   Other DSEs:
#       Allow self write access
#       Allow authenticated users read access
#       Allow anonymous users to authenticate
#   Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
#access to attrs=userpassword by self =w by anonymous auth
#access to * by self write by users read
access to * by * write
#access to * by dn.base="cn=cosine,cn=schema,cn=config" write
#access to *  by dn.base="cn=inetorgperson,cn=schema,cn=config" write
#by * write
#by users write
#by dn.base="cn=cosine,cn=schema,cn=config" write
#   by self write
#   by users read
#   by anonymous auth
#allow bind_anon_dn
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!  

#######################################################################
# BDB database definitions
#######################################################################

#database   bdb
#suffix     "dc=my-domain,dc=com"
#rootdn     "cn=Manager,dc=my-domain,dc=com"

database bdb
suffix   "dc=mydomain,dc=com"
rootdn   "cn=Manager,dc=mydomain,dc=com"

# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw  secret

#replica host=localhost:389
#binddn "cn=cosine,cn=schema,cn=config"
#bindmethod=simple credentials=secret

# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory   /usr/local/var/openldap-data
# Indices to maintain
index   objectClass eq

loglevel 128

Thanks,