mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Guest and LDAP progress
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -192,6 +192,9 @@
|
||||
<property name="authenticationManager">
|
||||
<ref bean="authenticationManager" />
|
||||
</property>
|
||||
<property name="allowGuestLogin">
|
||||
<value>true</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
|
26
config/alfresco/bootstrap/alfrescoUserStore.xml
Normal file
26
config/alfresco/bootstrap/alfrescoUserStore.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||
xmlns:sys="http://www.alfresco.org/model/system/1.0"
|
||||
xmlns:usr="http://www.alfresco.org/model/user/1.0"
|
||||
xmlns:app="http://www.alfresco.org/model/application/1.0">
|
||||
|
||||
<sys:container view:childName="${alfresco_user_store.system_container.childname}">
|
||||
<sys:children>
|
||||
<sys:container view:childName="${alfresco_user_store.user_container.childname}">
|
||||
<sys:children>
|
||||
<usr:user view:childName="usr:user">
|
||||
<usr:username>admin</usr:username>
|
||||
<usr:password>209c6174da490caeb422f3fa5a7ae634</usr:password>
|
||||
<usr:enabled>true</usr:enabled>
|
||||
<usr:accountExpires>false</usr:accountExpires>
|
||||
<usr:credentialsExpire>false</usr:credentialsExpire>
|
||||
<usr:accountLocked>false</usr:accountLocked>
|
||||
</usr:user>
|
||||
</sys:children>
|
||||
</sys:container>
|
||||
<sys:container view:childName="${alfresco_user_store.authorities_container.childname}">
|
||||
</sys:container>
|
||||
</sys:children>
|
||||
</sys:container>
|
||||
|
||||
</view:view>
|
@@ -5,6 +5,12 @@
|
||||
<!-- NOTE: all replaced properties referenced from repository.properties file must also be
|
||||
mapped in the application-context.xml importerBootstrap/configuration section -->
|
||||
<cm:folder view:childName="${spaces.company_home.childname}">
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<app:uifacets />
|
||||
<cm:name>${spaces.company_home.name}</cm:name>
|
||||
<app:icon>space-icon-default</app:icon>
|
||||
@@ -41,6 +47,23 @@
|
||||
</cm:folder>
|
||||
</cm:contains>
|
||||
</cm:folder>
|
||||
<cm:folder view:childName="${spaces.guest_home.childname}">
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>Guest</view:authority>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<app:uifacets />
|
||||
<cm:name>${spaces.guest_home.name}</cm:name>
|
||||
<app:icon>space-icon-default</app:icon>
|
||||
<cm:title>${spaces.guest_home.name}</cm:title>
|
||||
<cm:description>${spaces.guest_home.description}</cm:description>
|
||||
</cm:folder>
|
||||
</cm:contains>
|
||||
</cm:folder>
|
||||
|
||||
|
31
config/alfresco/bootstrap/system.xml
Normal file
31
config/alfresco/bootstrap/system.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||
xmlns:sys="http://www.alfresco.org/model/system/1.0"
|
||||
xmlns:app="http://www.alfresco.org/model/application/1.0">
|
||||
|
||||
<sys:container view:childName="${system.system_container.childname}">
|
||||
<sys:children>
|
||||
<sys:container view:childName="${system.people_container.childname}">
|
||||
<sys:children>
|
||||
<cm:person view:childName="cm:person">
|
||||
<cm:userName>admin</cm:userName>
|
||||
<cm:firstName>Administrator</cm:firstName>
|
||||
<cm:lastName></cm:lastName>
|
||||
<cm:email></cm:email>
|
||||
<cm:organizationId></cm:organizationId>
|
||||
<cm:homeFolder>/${spaces.company_home.childname}</cm:homeFolder>
|
||||
</cm:person>
|
||||
<cm:person view:childName="cm:person">
|
||||
<cm:userName>Guest</cm:userName>
|
||||
<cm:firstName>Guest</cm:firstName>
|
||||
<cm:lastName></cm:lastName>
|
||||
<cm:email></cm:email>
|
||||
<cm:organizationId></cm:organizationId>
|
||||
<cm:homeFolder>/${spaces.company_home.childname}/${spaces.guest_home.childname}</cm:homeFolder>
|
||||
</cm:person>
|
||||
</sys:children>
|
||||
</sys:container>
|
||||
</sys:children>
|
||||
</sys:container>
|
||||
|
||||
</view:view>
|
@@ -2,12 +2,14 @@
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||
xmlns:app="http://www.alfresco.org/model/application/1.0">
|
||||
|
||||
<!--
|
||||
<cm:folder>
|
||||
<app:uifacets />
|
||||
<cm:name>${tutorial.space.name}</cm:name>
|
||||
<cm:description>${tutorial.space.description}</cm:description>
|
||||
<app:icon>space-icon-doc</app:icon>
|
||||
<cm:contains>
|
||||
-->
|
||||
<cm:content>
|
||||
<app:uifacets />
|
||||
<cm:name>${tutorial.document.name}</cm:name>
|
||||
@@ -15,7 +17,9 @@
|
||||
<cm:description>${tutorial.document.description}</cm:description>
|
||||
<cm:content>contentUrl=classpath:alfresco/bootstrap/${tutorial.document.name}|mimetype=application/pdf|size=|encoding=</cm:content>
|
||||
</cm:content>
|
||||
<!--
|
||||
</cm:contains>
|
||||
</cm:folder>
|
||||
-->
|
||||
|
||||
</view:view>
|
||||
|
@@ -709,7 +709,53 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="importerBootstrap" class="org.alfresco.repo.importer.ImporterBootstrap" init-method="bootstrap" depends-on="systemBootstrap">
|
||||
|
||||
<bean id="alfrescoUserStoreBootstrap" class="org.alfresco.repo.importer.ImporterBootstrap" init-method="bootstrap" depends-on="systemBootstrap">
|
||||
<property name="transactionService">
|
||||
<ref bean="transactionComponent"/>
|
||||
</property>
|
||||
<property name="nodeService">
|
||||
<ref bean="nodeService"/>
|
||||
</property>
|
||||
<property name="importerService">
|
||||
<ref bean="importerComponent"/>
|
||||
</property>
|
||||
<property name="namespaceService">
|
||||
<ref bean="namespaceService"/>
|
||||
</property>
|
||||
<property name="authenticationComponent">
|
||||
<ref bean="authenticationComponent" />
|
||||
</property>
|
||||
<property name="storeUrl">
|
||||
<value>${alfresco_user_store.store}</value>
|
||||
</property>
|
||||
<property name="allowWrite">
|
||||
<value>${server.transaction.allow-writes}</value>
|
||||
</property>
|
||||
<property name="configuration">
|
||||
<props>
|
||||
<prop key="alfresco_user_store.system_container.childname">${alfresco_user_store.system_container.childname}</prop>
|
||||
<prop key="alfresco_user_store.user_container.childname">${alfresco_user_store.user_container.childname}</prop>
|
||||
<prop key="alfresco_user_store.authorities_container.childname">${alfresco_user_store.authorities_container.childname}</prop>
|
||||
</props>
|
||||
</property>
|
||||
<!-- To specify a locale other than the system default, uncomment the following
|
||||
<property name="locale">
|
||||
<value>en_GB</value>
|
||||
</property>
|
||||
-->
|
||||
<property name="bootstrapViews">
|
||||
<list>
|
||||
<props>
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/alfrescoUserStore.xml</prop>
|
||||
</props>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<bean id="importerBootstrap" class="org.alfresco.repo.importer.ImporterBootstrap" init-method="bootstrap" depends-on="alfrescoUserStoreBootstrap">
|
||||
<property name="transactionService">
|
||||
<ref bean="transactionComponent"/>
|
||||
</property>
|
||||
@@ -734,6 +780,9 @@
|
||||
<property name="configuration">
|
||||
<props>
|
||||
<prop key="spaces.company_home.childname">${spaces.company_home.childname}</prop>
|
||||
<prop key="spaces.guest_home.childname">${spaces.guest_home.childname}</prop>
|
||||
<prop key="system.system_container.childname">${system.system_container.childname}</prop>
|
||||
<prop key="system.people_container.childname">${system.people_container.childname}</prop>
|
||||
<prop key="spaces.dictionary.childname">${spaces.dictionary.childname}</prop>
|
||||
<prop key="spaces.templates.childname">${spaces.templates.childname}</prop>
|
||||
<prop key="spaces.templates.content.childname">${spaces.templates.content.childname}</prop>
|
||||
@@ -757,7 +806,11 @@
|
||||
<prop key="messages">alfresco/messages/bootstrap-spaces</prop>
|
||||
</props>
|
||||
<props>
|
||||
<prop key="path">/${spaces.company_home.childname}</prop>
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/system.xml</prop>
|
||||
</props>
|
||||
<props>
|
||||
<prop key="path">/${spaces.company_home.childname}/${spaces.guest_home.childname}</prop>
|
||||
<prop key="location">alfresco/bootstrap/tutorial.xml</prop>
|
||||
<prop key="messages">alfresco/messages/bootstrap-tutorial</prop>
|
||||
</props>
|
||||
|
@@ -14,3 +14,6 @@ spaces.templates.content.description=Content templates
|
||||
|
||||
spaces.savedsearches.name=Saved Searches
|
||||
spaces.savedsearches.description=Saved Searches
|
||||
|
||||
spaces.guest_home.name=Guest Home
|
||||
spaces.guest_home.description=The guest root space
|
||||
|
@@ -62,15 +62,30 @@ mail.password=
|
||||
system.store=system://system
|
||||
system.descriptor.childname=sys:descriptor
|
||||
|
||||
# User config
|
||||
|
||||
alfresco_user_store.store=user://alfrescoUserStore
|
||||
alfresco_user_store.system_container.childname=sys:system
|
||||
alfresco_user_store.user_container.childname=sys:people
|
||||
alfresco_user_store.authorities_container.childname=sys:authorities
|
||||
|
||||
# Spaces Configuration
|
||||
|
||||
spaces.store=workspace://SpacesStore
|
||||
spaces.company_home.childname=app:company_home
|
||||
spaces.guest_home.childname=app:guest_home
|
||||
spaces.dictionary.childname=app:dictionary
|
||||
spaces.templates.childname=app:space_templates
|
||||
spaces.templates.content.childname=app:content_templates
|
||||
spaces.savedsearches.childname=app:saved_searches
|
||||
|
||||
# Folders for storing people
|
||||
|
||||
system.system_container.childname=sys:system
|
||||
system.people_container.childname=sys:people
|
||||
|
||||
# Are user names case sensitive?
|
||||
|
||||
user.name.caseSensitive=false
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user