slapd: Add indices for a few attributes.
[matthijs/servers/drsnuggles.git] / etc / ldap / slapd.conf
1 # This is the main slapd configuration file. See slapd.conf(5) for more
2 # info on the configuration options.
3 #
4 # This file configures slapd to run a fairly simple database, with nothing
5 # fancy.
6
7 #######################################################################
8 # Global Directives:
9
10 # Schema and objectClass definitions
11 include         /etc/ldap/schema/core.schema
12 include         /etc/ldap/schema/cosine.schema
13 include         /etc/ldap/schema/nis.schema
14 include         /etc/ldap/schema/ldapns.schema
15 include         /etc/ldap/schema/inetorgperson.schema
16 include         /etc/ldap/schema/qmail-reduced.schema
17 include         /etc/ldap/schema/custom.schema
18
19 # Where the pid file is put. The init.d script
20 # will not stop the server if you change this.
21 pidfile         /var/run/slapd/slapd.pid
22
23 # List of arguments that were passed to the server
24 argsfile        /var/run/slapd/slapd.args
25
26 # Read slapd.conf(5) for possible values
27 loglevel        none
28
29 # Where the dynamically loaded modules are stored
30 modulepath      /usr/lib/ldap
31 moduleload      back_bdb
32
33 # The maximum number of entries that is returned for a search operation
34 sizelimit 500
35
36 # The tool-threads parameter sets the actual amount of cpu's that is used
37 # for indexing.
38 tool-threads 1
39
40 #######################################################################
41 database        bdb
42
43 # The base of your directory in database #1
44 suffix          "dc=drsnuggles,dc=stderr,dc=nl"
45
46 # Where the database file are physically stored for database #1
47 directory       "/data/db/ldap"
48
49 # For the Debian package we use 2MB as default but be sure to update this
50 # value if you have plenty of RAM
51 dbconfig set_cachesize 0 2097152 0
52
53 # Sven Hartge reported that he had to set this value incredibly high
54 # to get slapd running at all. See http://bugs.debian.org/303057 for more
55 # information.
56
57 # Number of objects that can be locked at the same time.
58 dbconfig set_lk_max_objects 1500
59 # Number of locks (both requested and granted)
60 dbconfig set_lk_max_locks 1500
61 # Number of lockers
62 dbconfig set_lk_max_lockers 1500
63
64 # Indexing options for database #1
65 index           objectClass eq
66 index           uniqueMember,memberUid eq
67 index           mail,mailAlternateAddress eq
68 index           uid,uidNumber eq
69
70 # Save the time that the entry gets modified, for database #1
71 lastmod         on
72
73 # Checkpoint the BerkeleyDB database periodically in case of system
74 # failure and to speed slapd shutdown.
75 checkpoint      512 30
76
77 # The userPassword by default can be changed
78 # by the entry owning it if they are authenticated.
79 # Others should not be able to see it, except the
80 # admin entry below
81 # These access lines apply to database #1 only
82 access to attrs=userPassword,shadowLastChange
83         by dn="cn=admin,dc=drsnuggles,dc=stderr,dc=nl" write
84         by anonymous auth
85         by self write
86         by * none
87
88 # Ensure read access to the base for things like
89 # supportedSASLMechanisms.  Without this you may
90 # have problems with SASL not knowing what
91 # mechanisms are available and the like.
92 # Note that this is covered by the 'access to *'
93 # ACL below too but if you change that as people
94 # are wont to do you'll still need this if you
95 # want SASL (and possible other things) to work
96 # happily.
97 access to dn.base="" by * read
98
99 # The admin dn has full write access, everyone else
100 # can read everything.
101 access to *
102         by dn="cn=admin,dc=drsnuggles,dc=stderr,dc=nl" write
103         by * read