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