\###### SAMPLE 1 - SIMPLE DIRECTORY ############ \# \# NOTES: inetorgperson picks up attributes and objectclasses \# from all three schemas \# \# NB: RH Linux schemas in /etc/openldap include /etc/openldap/schema/corba.schema include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/duaconf.schema include /etc/openldap/schema/dyngroup.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/java.schema include /etc/openldap/schema/misc.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/openldap.schema include /etc/openldap/schema/ppolicy.schema include /etc/openldap/schema/collective.schema \# NO SECURITY - no access clause \# defaults to anonymous access for read \# only rootdn can write \# NO REFERRALS \# DON'T bother with ARGS file unless you feel strongly \# slapd scripts stop scripts need this to work pidfile /var/run/openldap/slapd.pid
\# enable a lot of logging - we might need it \# but generates huge logs loglevel -1 \# MODULELOAD definitions \# not required (comment out) before version 2.3 moduleload back_bdb.la \# NO TLS-enabled connections \# backend definition not required
\#################################################################################################### \# bdb database definitions \# \# replace example and com below with a suitable domain \# \# If you don't have a domain you can leave it since example.com \# is reserved for experimentation or change them to my and inc \# \####################################################################################################
\# root or superuser **rootdn** "cn=Manager,dc=devops-dev, dc=chinaunicom" **rootpw** {SSHA}obNNrW3soCjEh0QdDquGq4vHyPiyb2qN \# The database directory MUST exist prior to running slapd AND \# change path as necessary directory /var/lib/ldap \# Indices to maintain for this directory \# unique id so equality match only index uid eq \# allows general searching on commonname, givenname and email index cn,gn,mail eq,sub \# allows multiple variants on surname searching index sn eq,sub \# sub above includes subintial,subany,subfinal \# optimise department searches index ou eq \# if searches will include objectClass uncomment following \# index objectClass eq \# shows use of default index parameter index default eq,sub \# indices missing - uses default eq,sub index telephonenumber eq \# other database parameters \# read more in slapd.conf reference section cachesize 10000 checkpoint 128 15