2 # See slapd.d(5) for details on configuration options.
3 # This file should NOT be world readable.
10 # Define global ACLs to disable default read access.
12 olcArgsFile: %LOCALSTATEDIR%/run/slapd.args
13 olcPidFile: %LOCALSTATEDIR%/run/slapd.pid
15 # Do not enable referrals until AFTER you have a working directory
16 # service AND an understanding of referrals.
17 #olcReferral: ldap://root.openldap.org
19 # Sample security restrictions
20 # Require integrity protection (prevent hijacking)
21 # Require 112-bit (3DES or better) encryption for updates
22 # Require 64-bit encryption for simple bind
23 #olcSecurity: ssf=1 update_ssf=112 simple_bind=64
27 # Load dynamic backend modules:
29 #dn: cn=module,cn=config
30 #objectClass: olcModuleList
32 #olcModulepath: %MODULEDIR%
33 #olcModuleload: back_bdb.la
34 #olcModuleload: back_hdb.la
35 #olcModuleload: back_ldap.la
36 #olcModuleload: back_passwd.la
37 #olcModuleload: back_shell.la
40 dn: cn=schema,cn=config
41 objectClass: olcSchemaConfig
44 include: file:///%SYSCONFDIR%/schema/core.ldif
48 dn: olcDatabase=frontend,cn=config
49 objectClass: olcDatabaseConfig
52 # Sample global access control policy:
53 # Root DSE: allow anyone to read it
54 # Subschema (sub)entry DSE: allow anyone to read it
56 # Allow self write access
57 # Allow authenticated users read access
58 # Allow anonymous users to authenticate
60 #olcAccess: to dn.base="" by * read
61 #olcAccess: to dn.base="cn=Subschema" by * read
67 # if no access controls are present, the default policy
68 # allows anyone and everyone to read anything but restricts
69 # updates to rootdn. (e.g., "access to * by * read")
71 # rootdn can always read and write EVERYTHING!
75 #######################################################################
76 # BDB database definitions
77 #######################################################################
79 dn: olcDatabase=bdb,cn=config
80 objectClass: olcDatabaseConfig
81 objectClass: olcBdbConfig
83 olcSuffix: dc=my-domain,dc=com
84 olcRootDN: cn=Manager,dc=my-domain,dc=com
85 # Cleartext passwords, especially for the rootdn, should
86 # be avoided. See slappasswd(8) and slapd-config(5) for details.
87 # Use of strong authentication encouraged.
89 # The database directory MUST exist prior to running slapd AND
90 # should only be accessible by the slapd and slap tools.
91 # Mode 700 recommended.
92 olcDbDirectory: %LOCALSTATEDIR%/openldap-data
94 olcDbIndex: objectClass eq