1 # copied from /usr/share/slapd/slapd.conf of slapd 2.4.44+dfsg-5+deb9u2 (Debian 9)
3 # This is the main slapd configuration file. See slapd.conf(5) for more
4 # info on the configuration options.
6 #######################################################################
9 # Schema and objectClass definitions
10 include /etc/ldap/schema/core.schema
11 include /etc/ldap/schema/cosine.schema
12 include /etc/ldap/schema/nis.schema
13 include /etc/ldap/schema/inetorgperson.schema
15 # Where the pid file is put. The init.d script
16 # will not stop the server if you change this.
17 pidfile /var/run/slapd/slapd.pid
19 # List of arguments that were passed to the server
20 argsfile /var/run/slapd/slapd.args
22 # Read slapd.conf(5) for possible values
25 # Where the dynamically loaded modules are stored
26 modulepath /usr/lib/ldap
27 moduleload back_@BACKEND@
29 # The maximum number of entries that is returned for a search operation
32 # The tool-threads parameter sets the actual amount of cpu's that is used
36 #######################################################################
37 # Specific Backend Directives for @BACKEND@:
38 # Backend specific directives apply to this backend until another
39 # 'backend' directive occurs
42 #######################################################################
43 # Specific Backend Directives for 'other':
44 # Backend specific directives apply to this backend until another
45 # 'backend' directive occurs
48 #######################################################################
49 # Specific Directives for database #1, of type @BACKEND@:
50 # Database specific directives apply to this databasse until another
51 # 'database' directive occurs
54 # The base of your directory in database #1
57 # rootdn directive for specifying a superuser on the database. This is needed
59 # rootdn "cn=admin,@SUFFIX@"
61 # Where the database file are physically stored for database #1
62 directory "/var/lib/ldap"
64 # The dbconfig settings are used to generate a DB_CONFIG file the first
65 # time slapd starts. They do NOT override existing an existing DB_CONFIG
66 # file. You should therefore change these settings in DB_CONFIG directly
67 # or remove DB_CONFIG and restart slapd for changes to take effect.
69 # For the Debian package we use 2MB as default but be sure to update this
70 # value if you have plenty of RAM
71 dbconfig set_cachesize 0 2097152 0
73 # Sven Hartge reported that he had to set this value incredibly high
74 # to get slapd running at all. See http://bugs.debian.org/303057 for more
77 # Number of objects that can be locked at the same time.
78 dbconfig set_lk_max_objects 1500
79 # Number of locks (both requested and granted)
80 dbconfig set_lk_max_locks 1500
82 dbconfig set_lk_max_lockers 1500
84 # Indexing options for database #1
87 # Save the time that the entry gets modified, for database #1
90 # Checkpoint the BerkeleyDB database periodically in case of system
91 # failure and to speed slapd shutdown.
94 # The userPassword by default can be changed
95 # by the entry owning it if they are authenticated.
96 # Others should not be able to see it, except the
98 # These access lines apply to database #1 only
99 access to attrs=userPassword,shadowLastChange
100 by dn="@ADMIN@" write
105 # Ensure read access to the base for things like
106 # supportedSASLMechanisms. Without this you may
107 # have problems with SASL not knowing what
108 # mechanisms are available and the like.
109 # Note that this is covered by the 'access to *'
110 # ACL below too but if you change that as people
111 # are wont to do you'll still need this if you
112 # want SASL (and possible other things) to work
114 access to dn.base="" by * read
116 # The admin dn has full write access, everyone else
117 # can read everything.
119 by dn="@ADMIN@" write
122 # For Netscape Roaming support, each user gets a roaming
123 # profile for which they have write access to
124 #access to dn=".*,ou=Roaming,o=morsnet"
125 # by dn="@ADMIN@" write
126 # by dnattr=owner write
128 #######################################################################
129 # Specific Directives for database #2, of type 'other' (can be @BACKEND@ too):
130 # Database specific directives apply to this databasse until another
131 # 'database' directive occurs
134 # The base of your directory for database #2
135 #suffix "dc=debian,dc=org"