slapd.conf configuration is as follows.
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
#include /usr/local/etc/openldap/schema/nis.schema
access to attrs=userpassword
by self write
by anonymous auth
by * none
access to *
by self write
# by group.exact="cn=hrpeople,ou=groups,dc=example,dc=com"
# write
by users read
by * none
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=samsung,dc=com"
rootdn "cn=Manager,dc=samsung,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 123qwe
# 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
#unique id so equality match only
index uid eq
index userPassword eq
#allows general searching on commonname,givenname and mail
index cn,gn,sn,ou,o,mail eq,sub
index objectClass eq
and my LDIF file has user entry as follows.
dn: cn=vijay s,ou=people,dc=samsung,dc=com
objectClass: inetOrgPerson
cn:vijay sheelavantar
cn: vijay s
uid: vijay
userPassword: 123qwe
sn: sheelavantar
Kindly let me know where I am making mistake...
VIJAY S.