PageRenderTime 52ms CodeModel.GetById 49ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/unmaintained/ldap/conf/slapd.conf

http://github.com/abeaumont/factor
Config | 67 lines | 54 code | 13 blank | 0 comment | 0 complexity | 2e0b5e9561748f7b9ed4132d68253b05 MD5 | raw file
 1#
 2###### SAMPLE 1 - SIMPLE DIRECTORY ############
 3#
 4# NOTES: inetorgperson picks up attributes and objectclasses
 5#        from all three schemas
 6#
 7# NB: RH Linux schemas in /etc/openldap
 8#
 9include		/opt/local/etc/openldap/schema/core.schema
10include		/opt/local/etc/openldap/schema/cosine.schema
11include		/opt/local/etc/openldap/schema/inetorgperson.schema
12
13
14# NO SECURITY - no access clause
15# defaults to anonymous access for read
16# only rootdn can write
17
18# NO REFERRALS
19
20# DON'T bother with ARGS file unless you feel strongly
21# slapd scripts stop scripts need this to work
22pidfile /opt/local/var/run/run/slapd.pid
23
24# enable a lot of logging - we might need it
25# but generates huge logs
26loglevel 	-1 
27
28# NO dynamic backend modules
29
30# NO TLS-enabled connections
31
32# backend definition not required
33
34#######################################################################
35# bdb database definitions
36# 
37# replace example and com below with a suitable domain
38# 
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
41#
42#######################################################################
43
44database bdb
45suffix "dc=example, dc=com"
46
47# root or superuser
48rootdn "cn=jimbob, dc=example, dc=com"
49rootpw secret
50# The database directory MUST exist prior to running slapd AND 
51# change path as necessary
52directory	/opt/local/var/run/openldap-data
53
54# Indices to maintain for this directory
55# unique id so equality match only
56index	uid	eq
57# allows general searching on commonname, givenname and email
58index	cn,gn,mail eq,sub
59# allows multiple variants on surname searching
60index sn eq,sub,subany,subfinal
61# optimise department searches
62index ou eq
63# shows use of default index parameter
64index default eq,sub
65# indices missing - uses default eq,sub
66index telephonenumber
67