Code

Removed socket server
[gosa.git] / gosa-core / contrib / altlinux / etc / openldap / slapd.conf
1 # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 kurt Exp $
2 #
3 # See slapd.conf(5) for details on configuration options.
4 # This file should NOT be world readable.
5 #
6 # [ GLOBAL SETTINGS ]
7 # Default schemas
8 include         /etc/openldap/schema/core.schema
9 include         /etc/openldap/schema/cosine.schema
10 include         /etc/openldap/schema/inetorgperson.schema
11 include         /etc/openldap/schema/openldap.schema
12 include         /etc/openldap/schema/nis.schema
13 #include                /etc/openldap/schema/misc.schema
14 #include                /etc/openldap/schema/rfc822-MailMember.schema
15 #include                /etc/openldap/schema/kerberosobject.schema
16 #include                /etc/openldap/schema/corba.schema
17 #include                /etc/openldap/schema/java.schema
18 # Addon schemas
19 #include                /etc/openldap/schema/autofs.schema
20 #include                /etc/openldap/schema/courier.schema
21 #include                /etc/openldap/schema/dnszone.schema
22 #include                /etc/openldap/schema/qmail.schema
23 #include                /etc/openldap/schema/qmailControl.schema
24 #include                /etc/openldap/schema/samba2.schema
25 include         /etc/openldap/schema/samba3.schema
26 # Experementel schemas
27 #include                /etc/openldap/schema/cron.schema
28 #include                /etc/openldap/schema/trust.schema
29 #include                /etc/openldap/schema/turbo.schema
30 # Netscape roaming
31 #include                /etc/openldap/schema/mull.schema
32 #include                /etc/openldap/schema/netscape-profile.schema
33 # Local schema
35 # GOSA2 schemas
36 #include                /etc/openldap/schema/local.schema
37 include         /etc/openldap/schema/gohard.schema
38 include         /etc/openldap/schema/goto.schema
39 include         /etc/openldap/schema/gofax.schema
40 include         /etc/openldap/schema/goserver.schema
41 include         /etc/openldap/schema/gosa+samba3.schema
42 #include                /etc/openldap/schema/gosa.schema
44 # Specify  a  set  of features (separated by white space) to allow.
45 allow bind_v2
47 # Do not enable referrals until AFTER you have a working directory
48 # service AND an understanding of referrals.
49 #referral ldap://root.openldap.org
51 # Specify a desired level of concurrency. Provided to the underlying thread
52 # system as a hint. The default is not to provide any hint.
53 concurency 20
55 # Specify  the maximum number of pending requests for an anonymous session.  If
56 # requests are submitted faster than the  server  can process them, they will
57 # be queued up to this limit. If the limit is exceeded, the session is closed.
58 #conn_max_pending 100
60 # Specify  the  maximum  number  of  pending   requests   for   an
61 # authenticated session.
62 #conn_max_pending 1000 
64 # Specify  a default search base to use when client submits a non-base search
65 # request with an empty base DN.
66 defaultsearchbase "dc=example,dc=com"
68 # A SIGHUP signal will only  cause  a  'gentle'  shutdown-attempt: Slapd  will
69 # stop  listening  for  new connections, but will not close the connections to
70 # the  current  clients.
71 gentlehup on
73 # Specify the number of seconds to wait before forcibly closing an idle client
74 # connection. A idletimeout of 0 disables this feature.
75 #idletimeout 0
77 # Specify time and size limits based on who initiated an operation.
78 #sizelimit 500
79 #timelimit 60
80 #limits anonymous time.soft=60 time.hard=120
81 #limits anonymous size.soft=1000 size.hard=1100 size.unchecked=1000
82 #limits users time.soft=60 time.hard=120
83 #limits users size=1000
84 #limits dn.base="ou=People,dc=example,dc=com" size=100
86 # Specify the level at which debugging statements and operation statistics
87 # should be syslogged (currently logged to the syslogd(8) LOG_LOCAL4 facility).
88 # Log levels are additive, and available levels are:
89 #    -1  full
90 #     0  none
91 #     1  trace function calls
92 #     2  debug packet handling
93 #     4  heavy trace debugging
94 #     8  connection management
95 #    16  print out packets sent and received
96 #    32  search filter processing
97 #    64  configuration file processing
98 #   128  access control list processing
99 #   256  stats log connections/operations/results
100 #   512  stats log entries sent
101 #  1024  print communication with shell backends
102 #  2048  entry parsing
103 #loglevel 256
105 # This option sets the hash to be used in generation of user passwords, stored
106 # in userPassword, during processing of LDAP Password Modify Extended
107 # Operations (RFC 3062). The <hash> must be one of {SSHA}, {SHA}, {SMD5},
108 # {MD5}, {CRYPT}, and {CLEARTEXT}. The default is {SSHA}.
109 #password-hash {SSHA}
111 # The ( absolute ) name of a file that will hold the server's process ID
112 # if started without the debugging command line option.
113 pidfile                 /var/run/slapd.pid
114 argsfile                /var/run/slapd.args
115 replica-pidfile         /var/run/slurpd.pid
116 replica-argsfile        /var/run/slurpd.args
118 # Specify a set of conditions (separated by white space) to require (default
119 # none). The directive may be specified globally and/or per-database. bind
120 # requires bind operation prior to directory operations. LDAPv3 requires
121 # session to be using LDAP version 3. authc requires authentication prior to
122 # directory operations. SASL requires SASL authentication prior to directory
123 # operations. strong requires strong authentication prior to directory
124 # operations. The strong keyword allows protected "simple" authentication as
125 # well as SASL authentication. none may be used to require no conditions
126 # (useful for clearly globally set conditions within a particular database).
127 #require none
129 # Specify the name of an LDIF(5) file containing user defined attributes for
130 # the root DSE. These attributes are returned in addition to the attributes
131 # normally produced by slapd.
132 #rootDSE /etc/openldap/rootdse.ldif
134 # Specify a set of factors (separated by white space) to require. An integer
135 # value is associated with each factor and is roughly equivalent of the
136 # encryption key length to require. A value of 112 is equivalent to 3DES, 128
137 # to Blowfish, etc..
138 #       Require integrity protection (prevent hijacking)
139 #       Require 112-bit (3DES or better) encryption for updates
140 #       Require 63-bit encryption for simple bind
141 #security ssf=1 update_ssf=112 simple_bind=64
143 # Specify the maximum size of the primary thread pool. The default is 16.
144 #threads 16
148 # [ TLS OPTIONS ]
150 # Permits configuring what ciphers will be accepted and the preference order.
151 # <cipher-suite-spec> should be a cipher specification for OpenSSL.
152 #TLSCipherSuite HIGH:MEDIUM:+SSLv2
154 # Specifies the path of a directory that contains Certificate Authority
155 # certificates in separate individual files. Usually only one of this or the
156 # TLSCACertificateFile is used.
157 #TLSCACertificateFile /etc/openldap/ssl/slapd.pem
158 #TLSCACertificatePath /etc/openldap/ssl
160 # Specifies the file that contains the slapd server certificate.
161 #TLSCertificateFile /etc/openldap/ssl/slapd.pem
163 # Specifies the file that contains the slapd server private key that matches
164 # the certificate stored in the TLSCertificateFile file. Currently, the private
165 # key must not be protected with a password, so it is of critical importance
166 # that it is protected carefully.
167 #TLSCertificateKeyFile /etc/openldap/ssl/slapd.pem
169 # Specifies what checks to perform on client certificates in an incoming TLS
170 # session, if any.
171 #TLSVerifyClient never
175 # [ ACCESS CONTROL ]
177 # See slapd.access(5) for details
178 #access to attrs=userPassword
179 #       by self write
180 #       by anonymous auth
181 #       by * none
185 # [ BACKEND OPTIONS ]
187 # Load dynamic backend modules:
188 modulepath      /usr/lib/openldap
189 #moduleload     back_dnssrv.la
190 #moduleload     back_ldap.la
191 moduleload      back_bdb.la
192 #moduleload     back_ldbm.la
193 #moduleload     back_meta.la
194 #moduleload     back_monitor.la
195 #moduleload     back_null.la
196 #moduleload     back_passwd.la
197 #moduleload     back_shell.la
198 #moduleload     back_perl.la
199 #moduleload     back_sql.la
201 # Options in this section only apply to the configuration file section for the
202 # specified backend. They are supported by every type of backend.
203 #backend ldbm
204 #cachesize 1000
205 #dbcachesize 100000
206 #dbsync 10 12 5
210 # [ DATABASE OPTIONS ]
212 # Mark the beginning of a new database instance definition.
213 #database ldbm
215 # Specify the DN suffix of queries that will be passed to this backend
216 # database. Multiple suffix lines can be given and at least one is required for
217 # each database definition. If the suffix of one database is "inside" that of
218 # another, the database with the inner suffix must come first in the
219 # configuration file.
220 #suffix "dc=example,dc=com"
222 # Specify the distinguished name that is not subject to access control or
223 # administrative limit restrictions for operations on this database. An empty
224 # root DN (the default) specifies no root access is to be granted. It is
225 # recommended that the rootdn only be specified when needed (such as when
226 # initially populating a database).
227 #rootdn "cn=admin,dc=example,dc=com"
229 # Specify a password (or hash of the password) for the rootdn. This option
230 # accepts all RFC 2307 userPassword formats known to the server (see
231 # password-hash desription) as well as cleartext.
232 #rootpw secret
234 # Controls whether slapd will automatically maintain the modifiersName,
235 # modifyTimestamp, creatorsName, and createTimestamp attributes for entries.
236 #lastmod on
238 # Specifies the maximum number of aliases to dereference when trying to resolve
239 # an entry, used to avoid inifinite alias loops.
240 #maxderefdepth 1
242 # This option puts the database into "read-only" mode. Any attempts to modify
243 # the database will return an "unwilling to perform" error.
244 #readonly on
246 # Specify a replication site for this database. Refer to the "OpenLDAP
247 # Administrator's Guide" for detailed information on setting up a replicated
248 # slapd directory service.
249 #replica uri=ldaps://ldap2.example.com/
251 # Specify the name of the replication log file to log changes to.
252 #replogfile /var/lib/ldap/replica/example.com.replog
254 # Specify that the current backend database is a subordinate of another backend
255 # database. A subordinate database may have only one suffix. This option may be
256 # used to glue multiple databases into a single namingContext.
257 #subordinate
259 # This option is only applicable in a slave slapd. It specifies the DN allowed
260 # to make changes to the replica
261 #updatedn "cn=slave,dc=example,dc=com"
263 # Specify the referral to pass back when slapd(8) is asked to modify a
264 # replicated local database. If specified multiple times, each url is provided.
265 #updateref "uri=ldap://ldap2.example.com"
267 # Specify the directory where the LDBM files containing this database and
268 # associated indexes live.
269 #directory /var/lib/ldap/bases/example.com
271 # Specify the indexes to maintain for the given attribute (or list of
272 # attributes). Some attributes only support a subset of indexes.Specify the
273 # indexes to maintain for the given attribute (or list of attributes). Some
274 # attributes only support a subset of indexes.
275 #index objectClass eq
276 #index uid pres,eq,sub
277 #index cn pres,eq,sub,subany
279 #access to *
280 #       by * read
284 # Next database instance
286 database bdb
287 suffix "dc=example,dc=com"
288 #rootdn "cn=admin,dc=example,dc=com"
289 #rootpw secret
290 directory /var/lib/ldap/bases/example.com
292 index objectClass eq
293 index uid pres,eq
294 index cn pres,eq,sub,subany
295 index mail pres,eq
296 index gosaMailDeliveryMode pres,eq,sub
298 access to userPassword
299         by dn=".*,ou=Admins,dc=example,dc=com" write
300         by dn="cn=gosa,ou=Apps,dc=example,dc=com" write
301         by dn="cn=smbpasswd,ou=Apps,dc=example,dc=com" write
302         by self write
303         by anonymous auth
304         by * none
306 access to *
307         by dn=".*,ou=Admins,dc=example,dc=com" write
308         by dn="cn=gosa,ou=Apps,dc=example,dc=com" write
309         by dn="cn=smbpasswd,ou=Apps,dc=example,dc=com" write
310         by * read