2 ###### SAMPLE 1 - SIMPLE DIRECTORY ############
4 # NOTES: inetorgperson picks up attributes and objectclasses
5 # from all three schemas
7 # NB: RH Linux schemas in /etc/openldap
9 include /opt/local/etc/openldap/schema/core.schema
10 include /opt/local/etc/openldap/schema/cosine.schema
11 include /opt/local/etc/openldap/schema/inetorgperson.schema
14 # NO SECURITY - no access clause
15 # defaults to anonymous access for read
16 # only rootdn can write
20 # DON'T bother with ARGS file unless you feel strongly
21 # slapd scripts stop scripts need this to work
22 pidfile /opt/local/var/run/run/slapd.pid
24 # enable a lot of logging - we might need it
25 # but generates huge logs
28 # NO dynamic backend modules
30 # NO TLS-enabled connections
32 # backend definition not required
34 #######################################################################
35 # bdb database definitions
37 # replace example and com below with a suitable domain
39 # If you don't have a domain you can leave it since example.com
40 # is reserved for experimentation or change them to my and inc
42 #######################################################################
45 suffix "dc=example, dc=com"
48 rootdn "cn=jimbob, dc=example, dc=com"
50 # The database directory MUST exist prior to running slapd AND
51 # change path as necessary
52 directory /opt/local/var/run/openldap-data
54 # Indices to maintain for this directory
55 # unique id so equality match only
57 # allows general searching on commonname, givenname and email
58 index cn,gn,mail eq,sub
59 # allows multiple variants on surname searching
60 index sn eq,sub,subany,subfinal
61 # optimise department searches
63 # shows use of default index parameter
65 # indices missing - uses default eq,sub