]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.server.ads.server/META-INF/spring/server.xml
New project conventions
[lgpl/argeo-commons.git] / org.argeo.server.ads.server / META-INF / spring / server.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
4 "http://www.springframework.org/dtd/spring-beans.dtd">
5
6 <beans>
7 <bean id="configuration"
8 class="org.apache.directory.server.configuration.MutableServerStartupConfiguration">
9 <property name="workingDirectory" value="example.com" />
10
11 <!--
12 Uncomment below to have the server load entries on startup!
13 -->
14 <!--
15 ldifDirectory property can point to a relative file, directory or
16 -->
17 <!--
18 can point to an absolute path to either using the URL path
19 -->
20 <!--
21 notation: i.e. file:///Users/jack/apacheds/ldifs
22 -->
23
24 <!--
25 Entries will optionally be filtered using LdifLoadFilters in the
26 -->
27 <!--
28 order specified. The included Krb5KdcEntryFilter will filter
29 -->
30 <!--
31 kerberos principals creating keys for them using their
32 -->
33 <!--
34 userPassword attribute if present.
35 -->
36
37 <!--
38 <property name="ldifDirectory">
39 <value>${argeo.ads.init.ldif}</value>
40 </property> -->
41
42 <!--
43 <property name="ldifFilters"> <list> <bean
44 class="org.apache.directory.server.protocol.shared.store.Krb5KdcEntryFilter"
45 /> </list> </property>
46 -->
47
48
49 <!--
50 the number of milliseconds before issuing a synch (flush to disk)
51 -->
52 <!--
53 which writes out dirty pages back to disk. To turn off synchs all
54 -->
55 <!--
56 together simply set this value to <= 0. Make sure you turn on
57 -->
58 <!--
59 synchOnWrite for all partitions if you do choose to do this or else
60 -->
61 <!--
62 writes may never persist to disk.
63 -->
64 <property name="synchPeriodMillis" value="15000" />
65
66 <!--
67 limits searches by non-admin users to a max time of 15000
68 -->
69 <!--
70 milliseconds and has a default value of 10000
71 -->
72 <property name="maxTimeLimit" value="15000" />
73 <!--
74 limits searches to max size of 1000 entries: default value is 100
75 -->
76 <property name="maxSizeLimit" value="1000" />
77 <!--
78 maximum number of threads used by mina is set to 8: default is 4
79 -->
80 <property name="maxThreads" value="8" />
81
82 <property name="allowAnonymousAccess" value="true" />
83 <property name="accessControlEnabled" value="false" />
84 <property name="enableNtp" value="false" />
85 <property name="enableKerberos" value="false" />
86 <property name="enableChangePassword" value="false" />
87
88 <!--
89 It's more efficient to keep this feature turned off but you may not
90 like having the creatorsName and modifiersName contain OIDs instead
91 of short attributeType names instead. So if you want the creatorsName
92 to change from the normalized form which is the internal
93 representation of '0.9.2342.19200300.100.1.1=admin,2.5.4.11=system'
94
95 to a more human readabile form like: 'uid=admin,ou=system' then set
96 this property to true.
97 -->
98 <property name="denormalizeOpAttrsEnabled" value="false" />
99
100 <property name="ldapPort" value="${argeo.ldap.port}" />
101
102 <property name="systemPartitionConfiguration" ref="systemPartitionConfiguration" />
103
104 <property name="contextPartitionConfigurations">
105 <set>
106 <ref bean="examplePartitionConfiguration" />
107 </set>
108 </property>
109 <property name="bootstrapSchemas">
110 <set>
111 <bean
112 class="org.apache.directory.server.core.schema.bootstrap.AutofsSchema" />
113 <bean
114 class="org.apache.directory.server.core.schema.bootstrap.CorbaSchema" />
115 <bean class="org.apache.directory.server.core.schema.bootstrap.CoreSchema" />
116 <bean
117 class="org.apache.directory.server.core.schema.bootstrap.CosineSchema" />
118 <bean
119 class="org.apache.directory.server.core.schema.bootstrap.ApacheSchema" />
120 <bean
121 class="org.apache.directory.server.core.schema.bootstrap.CollectiveSchema" />
122 <bean
123 class="org.apache.directory.server.core.schema.bootstrap.InetorgpersonSchema" />
124 <bean class="org.apache.directory.server.core.schema.bootstrap.JavaSchema" />
125 <bean
126 class="org.apache.directory.server.core.schema.bootstrap.Krb5kdcSchema" />
127 <bean class="org.apache.directory.server.core.schema.bootstrap.NisSchema" />
128 <bean
129 class="org.apache.directory.server.core.schema.bootstrap.SystemSchema" />
130 <bean
131 class="org.apache.directory.server.core.schema.bootstrap.ApachednsSchema" />
132 </set>
133 </property>
134
135 <property name="extendedOperationHandlers">
136 <list>
137 <bean
138 class="org.apache.directory.server.ldap.support.extended.GracefulShutdownHandler" />
139 <bean
140 class="org.apache.directory.server.ldap.support.extended.LaunchDiagnosticUiHandler" />
141 </list>
142 </property>
143
144 <property name="interceptorConfigurations">
145 <list>
146 <bean
147 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
148 <property name="name" value="normalizationService" />
149 <property name="interceptor">
150 <bean
151 class="org.apache.directory.server.core.normalization.NormalizationService" />
152 </property>
153 </bean>
154 <bean
155 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
156 <property name="name" value="authenticationService" />
157 <property name="interceptor">
158 <bean
159 class="org.apache.directory.server.core.authn.AuthenticationService" />
160 </property>
161 </bean>
162 <bean
163 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
164 <property name="name" value="referralService" />
165 <property name="interceptor">
166 <bean class="org.apache.directory.server.core.referral.ReferralService" />
167 </property>
168 </bean>
169 <bean
170 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
171 <property name="name" value="authorizationService" />
172 <property name="interceptor">
173 <bean
174 class="org.apache.directory.server.core.authz.AuthorizationService" />
175 </property>
176 </bean>
177 <bean
178 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
179 <property name="name" value="defaultAuthorizationService" />
180 <property name="interceptor">
181 <bean
182 class="org.apache.directory.server.core.authz.DefaultAuthorizationService" />
183 </property>
184 </bean>
185 <bean
186 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
187 <property name="name" value="exceptionService" />
188 <property name="interceptor">
189 <bean
190 class="org.apache.directory.server.core.exception.ExceptionService" />
191 </property>
192 </bean>
193 <bean
194 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
195 <property name="name" value="schemaService" />
196 <property name="interceptor">
197 <bean class="org.apache.directory.server.core.schema.SchemaService" />
198 </property>
199 </bean>
200 <bean
201 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
202 <property name="name" value="subentryService" />
203 <property name="interceptor">
204 <bean class="org.apache.directory.server.core.subtree.SubentryService" />
205 </property>
206 </bean>
207 <bean
208 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
209 <property name="name" value="operationalAttributeService" />
210 <property name="interceptor">
211 <bean
212 class="org.apache.directory.server.core.operational.OperationalAttributeService" />
213 </property>
214 </bean>
215 <bean
216 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
217 <property name="name" value="collectiveAttributeService" />
218 <property name="interceptor">
219 <bean
220 class="org.apache.directory.server.core.collective.CollectiveAttributeService" />
221 </property>
222 </bean>
223 <bean
224 class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
225 <property name="name" value="eventService" />
226 <property name="interceptor">
227 <bean class="org.apache.directory.server.core.event.EventService" />
228 </property>
229 </bean>
230 </list>
231 </property>
232 </bean>
233
234 <!--
235 use the following partitionConfiguration to override defaults for
236 -->
237 <!--
238 the system partition
239 -->
240 <bean id="systemPartitionConfiguration"
241 class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">
242 <property name="name" value="system" />
243 <property name="cacheSize" value="100" />
244 <property name="suffix" value="ou=system" />
245
246 <!--
247 the optimizer is enabled by default but may not always be what
248 -->
249 <!--
250 you want if your queries are really simple
251 -->
252 <property name="optimizerEnabled" value="true" />
253
254 <!--
255 Synchronization on writes does not wait for synch operations to flush
256 dirty pages. Writes persist immediately to disk at a cost to
257 performance with increased data integrity. Otherwise the periodic
258 synch operation will flush dirty pages using the synchPeriodMillis
259 parameter in the main configuration.
260 -->
261 <property name="synchOnWrite" value="true" />
262 <property name="indexedAttributes">
263 <set>
264 <bean
265 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
266 <property name="attributeId" value="ou" />
267 <property name="cacheSize" value="100" />
268 </bean>
269 <bean
270 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
271 <property name="attributeId" value="uid" />
272 <property name="cacheSize" value="100" />
273 </bean>
274 <bean
275 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
276 <property name="attributeId" value="objectClass" />
277 <property name="cacheSize" value="100" />
278 </bean>
279 </set>
280 </property>
281 <property name="contextEntry">
282 <value><![CDATA[
283 objectClass: top
284 objectClass: organizationalUnit
285 objectClass:extensibleObject
286 ou: system
287 ]]></value>
288 </property>
289 </bean>
290
291
292 <bean id="examplePartitionConfiguration"
293 class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">
294 <property name="name" value="example" />
295 <property name="cacheSize" value="100" />
296 <property name="suffix" value="${argeo.ldap.rootdn}" />
297
298 <!--
299 the optimizer is enabled by default but may not always be what
300 -->
301 <!--
302 you want if your queries are really simple
303 -->
304 <property name="optimizerEnabled" value="true" />
305
306 <!--
307 Synchronization on writes does not wait for synch operations to flush
308 dirty pages. Writes persist immediately to disk at a cost to
309 performance with increased data integrity. Otherwise the periodic
310 synch operation will flush dirty pages using the synchPeriodMillis
311 parameter in the main configuration.
312 -->
313 <property name="synchOnWrite" value="true" />
314 <property name="indexedAttributes">
315 <set>
316 <bean
317 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
318 <property name="attributeId" value="dc" />
319 <property name="cacheSize" value="100" />
320 </bean>
321 <bean
322 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
323 <property name="attributeId" value="ou" />
324 <property name="cacheSize" value="100" />
325 </bean>
326 <bean
327 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
328 <property name="attributeId" value="krb5PrincipalName" />
329 <property name="cacheSize" value="100" />
330 </bean>
331 <bean
332 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
333 <property name="attributeId" value="uid" />
334 <property name="cacheSize" value="100" />
335 </bean>
336 <bean
337 class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
338 <property name="attributeId" value="objectClass" />
339 <property name="cacheSize" value="100" />
340 </bean>
341 </set>
342 </property>
343 <property name="contextEntry">
344 <value><![CDATA[
345 objectClass: top
346 objectClass: domain
347 objectClass: extensibleObject
348 dc: example
349 ]]></value>
350 </property>
351 </bean>
352
353 <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
354 <property name="customEditors">
355 <map>
356 <entry key="javax.naming.directory.Attributes">
357 <bean
358 class="org.apache.directory.server.core.configuration.AttributesPropertyEditor" />
359 </entry>
360 </map>
361 </property>
362 </bean>
363 </beans>