Debian Codegraph @

dirsrvtests/tests/data/openldap_2_389/1/setup/slapd.ldif

raw
1 #
2 # See slapd-config(5) for details on configuration options.
3 # This file should NOT be world readable.
4 #
5 dn: cn=config
6 objectClass: olcGlobal
7 cn: config
8 #
9 #
10 # Define global ACLs to disable default read access.
11 #
12 olcArgsFile: /var/run/slapd.args
13 olcPidFile: /var/run/slapd.pid
14 #
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
18 #
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
24
25
26 #
27 # Load dynamic backend modules:
28 #
29 dn: cn=module,cn=config
30 objectClass: olcModuleList
31 cn: module
32 #olcModulepath: %MODULEDIR%
33 olcModuleload: back_mdb.la
34 olcModuleload: memberof.la
35 olcModuleload: refint.la
36 olcModuleload: unique.la
37 #olcModuleload: back_ldap.la
38 #olcModuleload: back_passwd.la
39 #olcModuleload: back_shell.la
40
41
42 dn: cn=schema,cn=config
43 objectClass: olcSchemaConfig
44 cn: schema
45
46 include: file:///etc/openldap/schema/core.ldif
47 include: file:///etc/openldap/schema/cosine.ldif
48 include: file:///etc/openldap/schema/inetorgperson.ldif
49 include: file:///etc/openldap/schema/rfc2307bis.ldif
50 include: file:///etc/openldap/schema/yast.ldif
51
52
53 # Frontend settings
54 #
55 dn: olcDatabase=frontend,cn=config
56 objectClass: olcDatabaseConfig
57 objectClass: olcFrontendConfig
58 olcDatabase: frontend
59 #
60 # Sample global access control policy:
61 # Root DSE: allow anyone to read it
62 # Subschema (sub)entry DSE: allow anyone to read it
63 # Other DSEs:
64 # Allow self write access
65 # Allow authenticated users read access
66 # Allow anonymous users to authenticate
67 #
68 olcAccess: to dn.base="" by * read
69 olcAccess: to dn.base="cn=Subschema" by * read
70 #olcAccess: to *
71 # by self write
72 # by users read
73 # by anonymous auth
74 #
75 # if no access controls are present, the default policy
76 # allows anyone and everyone to read anything but restricts
77 # updates to rootdn. (e.g., "access to * by * read")
78 #
79 # rootdn can always read and write EVERYTHING!
80 #
81
82
83 #######################################################################
84 # LMDB database definitions
85 #######################################################################
86 #
87 dn: olcDatabase={1}mdb,cn=config
88 objectClass: olcDatabaseConfig
89 objectClass: olcMdbConfig
90 olcDatabase: mdb
91 olcSuffix: dc=example,dc=com
92 olcRootDN: cn=Manager,dc=example,dc=com
93 # Cleartext passwords, especially for the rootdn, should
94 # be avoided. See slappasswd(8) and slapd-config(5) for details.
95 # Use of strong authentication encouraged.
96 olcRootPW: secret
97 # The database directory MUST exist prior to running slapd AND
98 # should only be accessible by the slapd and slap tools.
99 # Mode 700 recommended.
100 olcDbDirectory: /var/lib/ldap/example_com
101 # Indices to maintain
102 olcDbIndex: objectClass eq
103
104 dn: olcOverlay=memberof,olcDatabase={1}mdb,cn=config
105 objectClass: olcOverlayConfig
106 objectClass: olcMemberOf
107 olcOverlay: memberof
108 olcMemberOfRefint: TRUE
109
110 dn: olcOverlay=refint,olcDatabase={1}mdb,cn=config
111 objectClass: olcOverlayConfig
112 objectClass: olcRefintConfig
113 olcOverlay: refint
114 olcRefintAttribute: member
115 olcRefintAttribute: memberOf
116
117 dn: olcOverlay=unique,olcDatabase={1}mdb,cn=config
118 objectClass: olcOverlayConfig
119 objectClass: olcUniqueConfig
120 olcOverlay: unique
121 olcUniqueURI: ldap:///?mail?sub
122 olcUniqueURI: ldap:///?uid?sub
123
124 dn: olcDatabase={2}mdb,cn=config
125 objectClass: olcDatabaseConfig
126 objectClass: olcMdbConfig
127 olcDatabase: mdb
128 olcSuffix: dc=example,dc=net
129 olcRootDN: cn=Manager,dc=example,dc=net
130 olcRootPW: secret
131 olcDbDirectory: /var/lib/ldap/example_net
132 olcDbIndex: objectClass eq
133
134 dn: olcOverlay=memberof,olcDatabase={2}mdb,cn=config
135 objectClass: olcOverlayConfig
136 objectClass: olcMemberOf
137 olcOverlay: memberof
138 olcMemberOfRefint: TRUE
139
140 dn: olcOverlay=unique,olcDatabase={2}mdb,cn=config
141 objectClass: olcOverlayConfig
142 objectClass: olcUniqueConfig
143 olcOverlay: unique
144 olcUniqueURI: ldap:///?mail?sub
145 olcUniqueURI: ldap:///?uid?sub
146