1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <!DOCTYPE beans PUBLIC
"-//SPRING//DTD BEAN//EN"
4 "http://www.springframework.org/dtd/spring-beans.dtd">
7 <bean id=
"configuration"
8 class=
"org.apache.directory.server.configuration.MutableServerStartupConfiguration">
9 <property name=
"workingDirectory" value=
"example.com" />
12 Uncomment below to have the server load entries on startup!
15 ldifDirectory property can point to a relative file, directory or
18 can point to an absolute path to either using the URL path
21 notation: i.e. file:///Users/jack/apacheds/ldifs
25 Entries will optionally be filtered using LdifLoadFilters in the
28 order specified. The included Krb5KdcEntryFilter will filter
31 kerberos principals creating keys for them using their
34 userPassword attribute if present.
38 <property name="ldifDirectory">
39 <value>${argeo.ads.init.ldif}</value>
43 <property name="ldifFilters"> <list> <bean
44 class="org.apache.directory.server.protocol.shared.store.Krb5KdcEntryFilter"
45 /> </list> </property>
50 the number of milliseconds before issuing a synch (flush to disk)
53 which writes out dirty pages back to disk. To turn off synchs all
56 together simply set this value to <= 0. Make sure you turn on
59 synchOnWrite for all partitions if you do choose to do this or else
62 writes may never persist to disk.
64 <property name=
"synchPeriodMillis" value=
"15000" />
67 limits searches by non-admin users to a max time of 15000
70 milliseconds and has a default value of 10000
72 <property name=
"maxTimeLimit" value=
"15000" />
74 limits searches to max size of 1000 entries: default value is 100
76 <property name=
"maxSizeLimit" value=
"1000" />
78 maximum number of threads used by mina is set to 8: default is 4
80 <property name=
"maxThreads" value=
"8" />
82 <property name=
"allowAnonymousAccess" value=
"false" />
83 <property name=
"accessControlEnabled" value=
"false" />
84 <property name=
"enableNtp" value=
"false" />
85 <property name=
"enableKerberos" value=
"false" />
86 <property name=
"enableChangePassword" value=
"false" />
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'
95 to a more human readabile form like: 'uid=admin,ou=system' then set
96 this property to true.
98 <property name=
"denormalizeOpAttrsEnabled" value=
"false" />
100 <property name=
"ldapPort" value=
"${argeo.ldap.port}" />
102 <property name=
"systemPartitionConfiguration" ref=
"systemPartitionConfiguration" />
104 <property name=
"contextPartitionConfigurations">
106 <ref bean=
"examplePartitionConfiguration" />
109 <property name=
"bootstrapSchemas">
112 class=
"org.apache.directory.server.core.schema.bootstrap.AutofsSchema" />
114 class=
"org.apache.directory.server.core.schema.bootstrap.CorbaSchema" />
115 <bean class=
"org.apache.directory.server.core.schema.bootstrap.CoreSchema" />
117 class=
"org.apache.directory.server.core.schema.bootstrap.CosineSchema" />
119 class=
"org.apache.directory.server.core.schema.bootstrap.ApacheSchema" />
121 class=
"org.apache.directory.server.core.schema.bootstrap.CollectiveSchema" />
123 class=
"org.apache.directory.server.core.schema.bootstrap.InetorgpersonSchema" />
124 <bean class=
"org.apache.directory.server.core.schema.bootstrap.JavaSchema" />
126 class=
"org.apache.directory.server.core.schema.bootstrap.Krb5kdcSchema" />
127 <bean class=
"org.apache.directory.server.core.schema.bootstrap.NisSchema" />
129 class=
"org.apache.directory.server.core.schema.bootstrap.SystemSchema" />
131 class=
"org.apache.directory.server.core.schema.bootstrap.ApachednsSchema" />
135 <property name=
"extendedOperationHandlers">
138 class=
"org.apache.directory.server.ldap.support.extended.GracefulShutdownHandler" />
140 class=
"org.apache.directory.server.ldap.support.extended.LaunchDiagnosticUiHandler" />
144 <property name=
"interceptorConfigurations">
147 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
148 <property name=
"name" value=
"normalizationService" />
149 <property name=
"interceptor">
151 class=
"org.apache.directory.server.core.normalization.NormalizationService" />
155 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
156 <property name=
"name" value=
"authenticationService" />
157 <property name=
"interceptor">
159 class=
"org.apache.directory.server.core.authn.AuthenticationService" />
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" />
170 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
171 <property name=
"name" value=
"authorizationService" />
172 <property name=
"interceptor">
174 class=
"org.apache.directory.server.core.authz.AuthorizationService" />
178 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
179 <property name=
"name" value=
"defaultAuthorizationService" />
180 <property name=
"interceptor">
182 class=
"org.apache.directory.server.core.authz.DefaultAuthorizationService" />
186 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
187 <property name=
"name" value=
"exceptionService" />
188 <property name=
"interceptor">
190 class=
"org.apache.directory.server.core.exception.ExceptionService" />
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" />
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" />
208 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
209 <property name=
"name" value=
"operationalAttributeService" />
210 <property name=
"interceptor">
212 class=
"org.apache.directory.server.core.operational.OperationalAttributeService" />
216 class=
"org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
217 <property name=
"name" value=
"collectiveAttributeService" />
218 <property name=
"interceptor">
220 class=
"org.apache.directory.server.core.collective.CollectiveAttributeService" />
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" />
235 use the following partitionConfiguration to override defaults for
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" />
247 the optimizer is enabled by default but may not always be what
250 you want if your queries are really simple
252 <property name=
"optimizerEnabled" value=
"true" />
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.
261 <property name=
"synchOnWrite" value=
"true" />
262 <property name=
"indexedAttributes">
265 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
266 <property name=
"attributeId" value=
"ou" />
267 <property name=
"cacheSize" value=
"100" />
270 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
271 <property name=
"attributeId" value=
"uid" />
272 <property name=
"cacheSize" value=
"100" />
275 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
276 <property name=
"attributeId" value=
"objectClass" />
277 <property name=
"cacheSize" value=
"100" />
281 <property name=
"contextEntry">
284 objectClass: organizationalUnit
285 objectClass:extensibleObject
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}" />
299 the optimizer is enabled by default but may not always be what
302 you want if your queries are really simple
304 <property name=
"optimizerEnabled" value=
"true" />
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.
313 <property name=
"synchOnWrite" value=
"true" />
314 <property name=
"indexedAttributes">
317 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
318 <property name=
"attributeId" value=
"dc" />
319 <property name=
"cacheSize" value=
"100" />
322 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
323 <property name=
"attributeId" value=
"ou" />
324 <property name=
"cacheSize" value=
"100" />
327 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
328 <property name=
"attributeId" value=
"krb5PrincipalName" />
329 <property name=
"cacheSize" value=
"100" />
332 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
333 <property name=
"attributeId" value=
"uid" />
334 <property name=
"cacheSize" value=
"100" />
337 class=
"org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration">
338 <property name=
"attributeId" value=
"objectClass" />
339 <property name=
"cacheSize" value=
"100" />
343 <property name=
"contextEntry">
347 objectClass: extensibleObject
353 <bean class=
"org.springframework.beans.factory.config.CustomEditorConfigurer">
354 <property name=
"customEditors">
356 <entry key=
"javax.naming.directory.Attributes">
358 class=
"org.apache.directory.server.core.configuration.AttributesPropertyEditor" />