This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
/
authentication-services-context.xml
730 lines (665 loc) · 29.7 KB
/
authentication-services-context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!-- =================================================================== -->
<!-- This file contains the bean definitions that support authentication -->
<!-- =================================================================== -->
<!-- -->
<!-- Acegi is used for authentication and protecting method calls on public -->
<!-- services. To do this requires our authentication mechanism to work -->
<!-- within the acegi framework. -->
<!-- -->
<!-- It is important to decide if user names are case sensitive or not. -->
<!-- This is configured in repository.properties. -->
<!-- -->
<!-- -->
<!-- TODO: -->
<!-- -->
<!-- The transactional wrappers should be removed from the beans in this -->
<!-- file. This should be done in the public services definitions. -->
<!-- This requires some tests to be fixed up. -->
<!-- -->
<beans>
<!-- -->
<!-- The Acegi authentication manager. -->
<!-- -->
<!-- Provders are asked to authenticate in order. -->
<!-- First, is a provider that checks if an acegi authentication object -->
<!-- is already bound to the executing thread. If it is, and it is set -->
<!-- as authenticated then no further authentication is required. If -->
<!-- this is absent, Acegi validates the password for every method -->
<!-- invocation, which is too CPU expensive. If we set an -->
<!-- authentication based on a ticket etc .... or we want to set the -->
<!-- the system user as the current user ... we do not have the -->
<!-- password. So if we have set an authentication and set it as -->
<!-- authenticated that is sufficient to validate the user. -->
<!-- -->
<!-- If the authentication bound to the current thread is not set as -->
<!-- authenticated the standard Acegi DAO Authentication provider -->
<!-- is used to authenticate. -->
<!-- -->
<bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
<property name="providers">
<list>
<ref bean="authenticatedAuthenticationPassthroughProvider" />
</list>
</property>
</bean>
<!-- An authentication Provider that just believes authentications -->
<!-- bound to the local thread are valid if they are set as -->
<!-- authenticated. -->
<bean id="authenticatedAuthenticationPassthroughProvider"
class="org.alfresco.repo.security.authentication.AuthenticatedAuthenticationPassthroughProvider" />
<!-- The authority DAO implements an interface extended from the Acegi -->
<!-- DAO that supports CRUD. -->
<!-- The editable authentication chain -->
<bean id="Authentication"
class="org.alfresco.repo.management.subsystems.DefaultChildApplicationContextManager"
parent="abstractPropertyBackedBean">
<property name="defaultChain">
<value>${authentication.chain}</value>
</property>
</bean>
<!-- Acegi providers now proxy to the first authentication DAO in the chain -->
<bean id="authenticationDao"
class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.security.authentication.MutableAuthenticationDao</value>
</list>
</property>
<!-- A generic fallback implementation, in case the chain doesn't provide
one -->
<property name="defaultTarget">
<bean
class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao">
<property name="allowSetEnabled" value="true" />
<property name="allowGetEnabled" value="true" />
<property name="allowDeleteUser" value="true" />
<property name="allowCreateUser" value="true" />
</bean>
</property>
</bean>
<!-- Allow the authentication subsystem to listen for SMB Server session
events -->
<bean id="SmbSessionListener"
class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.jlan.server.SessionListener</value>
</list>
</property>
<!-- A benign fallback implementation, in case the chain isn't interested! -->
<property name="defaultTarget">
<bean class="org.alfresco.filesys.NullSessionListener" />
</property>
</bean>
<bean id="CifsAuthenticator"
class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="sourceBeanName">
<value>cifsAuthenticator</value>
</property>
<property name="interfaces">
<list>
<value>org.alfresco.jlan.server.auth.ICifsAuthenticator</value>
<value>org.alfresco.repo.management.subsystems.ActivateableBean</value>
</list>
</property>
</bean>
<bean id="RemoteUserMapper"
class="org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.security.authentication.external.RemoteUserMapper</value>
<value>org.alfresco.repo.management.subsystems.ActivateableBean</value>
</list>
</property>
<property name="sourceBeanName">
<value>remoteUserMapper</value>
</property>
</bean>
<!-- Passwords are encoded using MD4 -->
<!-- This is not ideal and only done to be compatible with NTLM -->
<!-- authentication against the default authentication mechanism. -->
<bean id="passwordEncoder" class="org.alfresco.repo.security.authentication.MD4PasswordEncoderImpl" />
<!-- No Op Password Encoder Does not encode a password - used to replace an obsolete encoder e.g. the MD4 one -->
<bean id="noOpPasswordEncoder" class="org.alfresco.repo.security.authentication.NoOpPasswordEncoderImpl" />
<bean id="sha256PasswordEncoder" class="org.alfresco.repo.security.authentication.ShaPasswordEncoderImpl">
<constructor-arg index="0"><value>256</value></constructor-arg>
</bean>
<bean id="compositePasswordEncoder" class="org.alfresco.repo.security.authentication.CompositePasswordEncoder" init-method="init">
<property name="encoders">
<map>
<entry key="md4">
<bean class="org.alfresco.repo.security.authentication.MD4PasswordEncoderImpl" />
</entry>
<entry key="sha256" value-ref="sha256PasswordEncoder" />
<entry key="bcrypt10">
<bean class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder">
<constructor-arg value="10" />
</bean>
</entry>
</map>
</property>
<property name="preferredEncoding" value="${system.preferred.password.encoding}" />
</bean>
<!-- The Authentication Service implementation. -->
<!-- -->
<!-- Each method 'chains' through all AuthenticationService implementations
in the authentication chain -->
<bean id="authenticationService"
class="org.alfresco.repo.security.authentication.subsystems.SubsystemChainingAuthenticationService">
<property name="sysAdminParams">
<ref bean="sysAdminParams" />
</property>
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="sourceBeanName">
<value>localAuthenticationService</value>
</property>
</bean>
<!-- The public authentication component. -->
<bean id="AuthenticationComponent"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.repo.security.authentication.AuthenticationComponent</value>
</property>
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<ref bean="authenticationComponent" />
</property>
<property name="transactionAttributes">
<props>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
<!-- Parent bean for beans derived from AbstractAuthenticationComponent -->
<bean id="authenticationComponentBase" abstract="true">
<property name="authenticationContext">
<ref bean="authenticationContext" />
</property>
<property name="userRegistrySynchronizer">
<ref bean="userRegistrySynchronizer" />
</property>
</bean>
<!-- The chaining authentication component -->
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.subsystems.SubsystemChainingAuthenticationComponent"
parent="authenticationComponentBase">
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="personService">
<ref bean="personService" />
</property>
<property name="transactionService">
<ref bean="transactionService" />
</property>
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="sourceBeanName">
<value>authenticationComponent</value>
</property>
</bean>
<!-- The chaining authentication component -->
<bean id="ftpAuthenticator"
class="org.alfresco.repo.security.authentication.subsystems.SubsystemChainingFtpAuthenticator">
<property name="applicationContextManager">
<ref bean="Authentication" />
</property>
<property name="sourceBeanName">
<value>ftpAuthenticator</value>
</property>
</bean>
<!-- Import the user registry synchronizer from the synchronization subsystem -->
<bean id="userRegistrySynchronizer"
class="org.alfresco.repo.management.subsystems.SubsystemProxyFactory">
<property name="sourceApplicationContextFactory">
<ref bean="Synchronization" />
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.security.sync.UserRegistrySynchronizer</value>
<value>org.alfresco.repo.security.sync.TestableChainingUserRegistrySynchronizer</value>
<value>org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizerStatus</value>
</list>
</property>
</bean>
<bean id="authenticationContext"
class="org.alfresco.repo.security.authentication.AuthenticationContextImpl">
<property name="tenantService">
<ref bean="tenantService" />
</property>
</bean>
<!-- Simple Authentication component that rejects all authentication requests -->
<!-- Use this defintion for Novell IChain integration. -->
<!-- It should never go to the login screen so this is not required -->
<!-- <bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.SimpleAcceptOrRejectAllAuthenticationComponentImpl"
parent="authenticationComponentBase"> <property name="accept"> <value>true</value>
</property> </property> <property name="nodeService"> <ref bean="nodeService"
/> </property> <property name="personService"> <ref bean="personService"
/> </property> <property name="transactionService"> <ref bean="transactionService"
/> </property> </bean> -->
<!-- support to match user names -->
<bean id="userNameMatcher" class="org.alfresco.repo.security.person.UserNameMatcherImpl">
<property name="userNamesAreCaseSensitive">
<value>${user.name.caseSensitive}</value>
</property>
<property name="domainNamesAreCaseSensitive">
<value>${domain.name.caseSensitive}</value>
</property>
<property name="domainSeparator">
<value>${domain.separator}</value>
</property>
</bean>
<!-- The person service. -->
<bean id="personService" class="org.alfresco.repo.security.person.PersonServiceImpl" init-method="init">
<property name="transactionService" ref="transactionService" />
<property name="nodeService" ref="nodeService" />
<property name="tenantService" ref="tenantService"/>
<property name="singletonCache" ref="immutableSingletonCache"/>
<property name="searchService" ref="admSearchService" />
<property name="permissionServiceSPI" ref="permissionServiceImpl" />
<property name="authorityService" ref="authorityService" />
<property name="authenticationService" ref="authenticationService" />
<property name="dictionaryService" ref="dictionaryService" />
<property name="namespacePrefixResolver" ref="namespaceService" />
<property name="policyComponent" ref="policyComponent"/>
<property name="personCache" ref="personCache" />
<property name="permissionsManager" ref="personServicePermissionsManager" />
<property name="cannedQueryRegistry" ref="personServiceCannedQueryRegistry" />
<property name="aclDAO" ref="aclDAO" />
<property name="homeFolderManager" ref="HomeFolderManager" />
<property name="repoAdminService" ref="repoAdminService" />
<property name="serviceRegistry" ref="ServiceRegistry"/>
<property name="eventPublisher" ref="eventPublisher" />
<!-- Configurable properties. -->
<property name="homeFolderCreationEager" value= "${home.folder.creation.eager}" />
<property name="homeFolderCreationDisabled" value= "${home.folder.creation.disabled}" />
<!-- -->
<!-- TODO: -->
<!-- Add support for creating real home spaces adn setting -->
<!-- permissions on the hame space and people created. -->
<!-- -->
<!-- The store in which people are persisted. -->
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<!-- Some authentication mechanisms may need to create people -->
<!-- in the repository on demand. This enables that feature. -->
<!-- If dsiabled an error will be generated for missing -->
<!-- people. If enabled then a person will be created and -->
<!-- persisted. -->
<!-- Valid values are -->
<!-- ${server.transaction.allow-writes} -->
<!-- false -->
<property name="createMissingPeople">
<value>${create.missing.people}</value>
</property>
<property name="userNameMatcher">
<ref bean="userNameMatcher" />
</property>
<!-- New properties after 1.4.0 to deal with duplicate user ids when found -->
<property name="processDuplicates">
<value>true</value>
</property>
<!-- one of: LEAVE, SPLIT, DELETE -->
<property name="duplicateMode">
<value>SPLIT</value>
</property>
<property name="lastIsBest">
<value>true</value>
</property>
<property name="includeAutoCreated">
<value>false</value>
</property>
</bean>
<bean id="personServiceCannedQueryRegistry" class="org.alfresco.util.registry.NamedObjectRegistry">
<property name="storageType" value="org.alfresco.query.CannedQueryFactory"/>
</bean>
<bean name="getPeopleCannedQueryFactory" class="org.alfresco.repo.security.person.GetPeopleCannedQueryFactory">
<property name="registry" ref="personServiceCannedQueryRegistry"/>
<property name="tenantService" ref="tenantService"/>
<property name="nodeDAO" ref="nodeDAO"/>
<property name="qnameDAO" ref="qnameDAO"/>
<property name="cannedQueryDAO" ref="cannedQueryDAO"/>
<property name="nodeService" ref="nodeService"/>
<property name="authorityService" ref="authorityService"/>
</bean>
<bean name="personServicePermissionsManager" class="org.alfresco.repo.security.person.PermissionsManagerImpl" >
<property name="permissionService">
<ref bean="permissionServiceImpl" />
</property>
<property name="ownableService">
<ref bean="ownableService" />
</property>
<property name="ownerPermissions">
<set>
<value>All</value>
</set>
</property>
<property name="userPermissions">
<set>
<value>All</value>
</set>
</property>
</bean>
<bean name="homeFolderManager"
class="org.alfresco.repo.security.person.PortableHomeFolderManager">
<property name="nodeService">
<ref bean="NodeService" />
</property>
<property name="defaultProvider">
<ref bean="userHomesHomeFolderProvider" />
</property>
<property name="fileFolderService">
<ref bean="FileFolderService" />
</property>
<property name="searchService">
<ref bean="SearchService" />
</property>
<property name="NamespaceService">
<ref bean="NamespaceService" />
</property>
<property name="singletonCache">
<ref bean="immutableSingletonCache" />
</property>
</bean>
<bean id="HomeFolderManager" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<list>
<value>org.alfresco.repo.security.person.HomeFolderManager</value>
</list>
</property>
<!-- Lazy init to avoid circular dependencies -->
<property name="targetSource">
<bean class="org.springframework.aop.target.LazyInitTargetSource">
<property name="targetBeanName">
<idref bean="homeFolderManager" />
</property>
</bean>
</property>
</bean>
<!-- deprecated use baseHomeFolderProvider2 -->
<bean name="baseHomeFolderProvider"
class="org.alfresco.repo.security.person.AbstractHomeFolderProvider"
abstract="true">
<!-- Requests services via ServiceRegistry for audit -->
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
<property name="homeFolderManager">
<ref bean="homeFolderManager" />
</property>
<property name="tenantService">
<ref bean="tenantService" />
</property>
</bean>
<bean name="baseHomeFolderProvider2"
class="org.alfresco.repo.security.person.AbstractHomeFolderProvider2"
abstract="true">
<property name="homeFolderManager">
<ref bean="homeFolderManager" />
</property>
</bean>
<bean name="existingHomeFolderProvider"
class="org.alfresco.repo.security.person.ExistingPathBasedHomeFolderProvider2"
abstract="true" parent="baseHomeFolderProvider2">
</bean>
<bean name="usernameHomeFolderProvider"
class="org.alfresco.repo.security.person.UsernameHomeFolderProvider"
abstract="true" parent="baseHomeFolderProvider2">
<property name="onCreatePermissionsManager">
<ref bean="defaultOnCreatePermissionsManager" />
</property>
<property name="onReferencePermissionsManager">
<ref bean="defaultOnReferencePermissionsManager" />
</property>
</bean>
<bean name="regexHomeFolderProvider"
class="org.alfresco.repo.security.person.RegexHomeFolderProvider"
abstract="true" parent="usernameHomeFolderProvider">
<property name="propertyName">
<value>${spaces.user_homes.regex.key}</value>
</property>
<property name="pattern">
<value>${spaces.user_homes.regex.pattern}</value>
</property>
<property name="groupOrder">
<value>${spaces.user_homes.regex.group_order}</value>
</property>
</bean>
<bean name="companyHomeFolderProvider" parent="existingHomeFolderProvider">
<property name="rootPath">
<value>/${spaces.company_home.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
</bean>
<bean name="guestHomeFolderProviderPermissionsManager"
class="org.alfresco.repo.security.person.PermissionsManagerImpl">
<property name="permissionService">
<ref bean="permissionServiceImpl" />
</property>
<property name="ownableService">
<ref bean="ownableService" />
</property>
<property name="userPermissions">
<set>
<value>Consumer</value>
</set>
</property>
</bean>
<bean name="guestHomeFolderProvider" parent="existingHomeFolderProvider">
<property name="rootPath">
<value>/${spaces.company_home.childname}/${spaces.guest_home.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="onCreatePermissionsManager">
<ref bean="guestHomeFolderProviderPermissionsManager" />
</property>
<property name="onReferencePermissionsManager">
<ref bean="guestHomeFolderProviderPermissionsManager" />
</property>
</bean>
<bean name="bootstrapHomeFolderProvider"
class="org.alfresco.repo.security.person.BootstrapHomeFolderProvider"
parent="baseHomeFolderProvider2" />
<bean name="defaultOnCreatePermissionsManager"
class="org.alfresco.repo.security.person.PermissionsManagerImpl">
<property name="permissionService">
<ref bean="permissionServiceImpl" />
</property>
<property name="ownableService">
<ref bean="ownableService" />
</property>
<property name="inheritPermissions">
<value>false</value>
</property>
<property name="ownerPermissions">
<set>
<value>All</value>
</set>
</property>
<property name="userPermissions">
<set>
<value>All</value>
</set>
</property>
</bean>
<bean name="defaultOnReferencePermissionsManager"
class="org.alfresco.repo.security.person.PermissionsManagerImpl">
<property name="permissionService">
<ref bean="permissionServiceImpl" />
</property>
<property name="ownableService">
<ref bean="ownableService" />
</property>
<property name="userPermissions">
<set>
<value>All</value>
</set>
</property>
</bean>
<bean name="personalHomeFolderProvider" parent="usernameHomeFolderProvider">
<property name="rootPath">
<value>/${spaces.company_home.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
</bean>
<bean name="userHomesHomeFolderProvider" parent="usernameHomeFolderProvider">
<property name="rootPath">
<value>/${spaces.company_home.childname}/${spaces.user_homes.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
</bean>
<bean name="largeHomeFolderProvider" parent="regexHomeFolderProvider">
<property name="rootPath">
<value>/${spaces.company_home.childname}/${spaces.user_homes.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
</bean>
<!-- The ticket component. -->
<!-- Used for reauthentication -->
<bean id="ticketComponent" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.repo.security.authentication.TicketComponent</value>
</property>
<property name="target">
<bean
class="org.alfresco.repo.security.authentication.InMemoryTicketComponentImpl">
<property name="ticketsCache">
<ref bean="ticketsCache" />
</property>
<!-- The period for which tickets are valid in XML duration format. -->
<!-- The default is PT1H for one hour. -->
<property name="validDuration">
<value>${authentication.ticket.validDuration}</value>
</property>
<!-- Do tickets expire or live for ever? -->
<property name="ticketsExpire">
<value>${authentication.ticket.ticketsExpire}</value>
</property>
<!-- Are tickets only valid for a single use? -->
<property name="oneOff">
<value>false</value>
</property>
<!-- If ticketsEpire is true then how they should expire -->
<!-- AFTER_INACTIVITY, AFTER_FIXED_TIME, DO_NOT_EXPIRE -->
<!-- The default is AFTER_INACTIVITY -->
<property name="expiryMode">
<value>${authentication.ticket.expiryMode}</value>
</property>
<property name="useSingleTicketPerUser">
<value>${authentication.ticket.useSingleTicketPerUser}</value>
</property>
</bean>
</property>
<property name="interceptorNames">
<list>
<idref bean="AuditMethodInterceptor" />
</list>
</property>
</bean>
<!-- -->
<bean id="nameBasedUserNameGenerator"
class="org.alfresco.repo.security.authentication.NameBasedUserNameGenerator">
<!-- name patterns available: %lastName%, lower case last name %firstName%,
lower case first name %emailAddress% email address %i% lower case first name
inital -->
<property name="namePattern">
<value>%firstName%_%lastName%</value>
</property>
<property name="userNameLength">
<value>10</value>
</property>
</bean>
<!-- Used for generating user names -->
<bean id="userNameGenerator"
class="org.alfresco.repo.security.authentication.TenantAwareUserNameGenerator">
<property name="generator">
<ref bean="nameBasedUserNameGenerator" />
</property>
<property name="tenantService">
<ref bean="tenantService" />
</property>
</bean>
<!-- Used for generating passwords -->
<bean id="passwordGenerator"
class="org.alfresco.repo.security.authentication.BasicPasswordGenerator">
<property name="passwordLength">
<value>8</value>
</property>
</bean>
<!-- Authentication Util initialization -->
<bean id="authenticationUtil"
class="org.alfresco.repo.security.authentication.AuthenticationUtil">
<property name="defaultAdminUserName">
<value>${alfresco_user_store.adminusername}</value>
</property>
<property name="defaultGuestUserName">
<value>${alfresco_user_store.guestusername}</value>
</property>
</bean>
<!-- UpgradePasswordHashWorker -->
<bean id="upgradePasswordHashWorker" class="org.alfresco.repo.security.authentication.UpgradePasswordHashWorker">
<property name="jobLockService">
<ref bean="jobLockService" />
</property>
<property name="transactionService">
<ref bean="transactionService" />
</property>
<property name="authenticationDao">
<ref bean="authenticationDao" />
</property>
<property name="compositePasswordEncoder">
<ref bean="compositePasswordEncoder" />
</property>
<property name="behaviourFilter">
<ref bean="policyBehaviourFilter" />
</property>
<property name="patchDAO">
<ref bean="patchDAO"/>
</property>
<property name="nodeDAO">
<ref bean="nodeDAO"/>
</property>
<property name="qnameDAO">
<ref bean="qnameDAO"/>
</property>
<property name="queryRange">
<value>${system.upgradePasswordHash.jobQueryRange}</value>
</property>
<property name="threadCount">
<value>${system.upgradePasswordHash.jobThreadCount}</value>
</property>
<property name="batchSize">
<value>${system.upgradePasswordHash.jobBatchSize}</value>
</property>
</bean>
</beans>