06-26-2007 12:00 PM
06-27-2007 03:03 AM
<entry key="cm:homeFolderProvider">
<value>personalHomeFolderProvider</value>
</entry>
<bean name="personalHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
<property name="path">
<value>/${spaces.company_home.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="homeFolderManager">
<ref bean="homeFolderManager" />
</property>
<property name="inheritsPermissionsOnCreate">
<value>false</value>
</property>
<property name="ownerPemissionsToSetOnCreate">
<set>
<value>All</value>
</set>
</property>
<property name="userPemissions">
<set>
<value>All</value>
</set>
</property>
</bean>
<property name="adminUsers">
<set>
<value>admin</value>
<value>administrator</value>
<value>userid1</value>
<value>userid2</value>
</set>
</property>
06-28-2007 12:10 PM
06-28-2007 03:46 PM
Hi
In your file ldap-authentication-context.xml, you have a bean called ldapPeopleExportSource that defines this mapping between LDAP properties and Alfresco properties.
And in this bean you have something like that:<entry key="cm:homeFolderProvider">
<value>personalHomeFolderProvider</value>
</entry>
This value makes references to an other bean defines in the file Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\authentication-services-context.xml<bean name="personalHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
<property name="path">
<value>/${spaces.company_home.childname}</value>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="homeFolderManager">
<ref bean="homeFolderManager" />
</property>
<property name="inheritsPermissionsOnCreate">
<value>false</value>
</property>
<property name="ownerPemissionsToSetOnCreate">
<set>
<value>All</value>
</set>
</property>
<property name="userPemissions">
<set>
<value>All</value>
</set>
</property>
</bean>
The property path makes reference to /${spaces.company_home.childname}, the company home folder.
If you want users' home folders to be created in User Homes, you must replace it by: /${spaces.company_home.childname}/${spaces.user_homes.childname}
In this bean you can also defines user rights on their home folders….
About the admin question now:
This can't be done during this importation! You can specify who have admin privileges in the config file authority-services-context.xml (same path as before).
In the bean authorityService you have a property adminUsers. There you can defines as many administrators as you want by adding their user id.<property name="adminUsers">
<set>
<value>admin</value>
<value>administrator</value>
<value>userid1</value>
<value>userid2</value>
</set>
</property>
Now you should be able to perform all you need!!!
Let me just give you some other advices:
- first: users home folder won't change even if you modify the path in the config file. You must reset your all repository (database and indexes). When the import will be perform on the new repository, folder will be in the expected places.
- seccond: PLEASE before posting read the forum!!!! I am sure there is many topic talking about this on this forum…. This time someone replied, but it won't allways be the same! JUST READ GUYS ….
I hope this help.
Regards,
jey.
07-02-2007 10:00 AM
<bean name="homeFolderManager" class="org.alfresco.repo.security.person.HomeFolderManager">
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
<property name="defaultProvider">
<!– Create people in company home
<ref bean="personalHomeFolderProvider" />
–>
<ref bean="userHomesHomeFolderProvider" />
</property>
</bean>
07-02-2007 06:09 PM
Hi
Users created outside LDAP import and the UI are made according to the default home folder provider. This will be used when auto-creating user via NTLM.
…
Also see http://issues.alfresco.com/browse/AR-1558
Andy
javax.faces.FacesException: Error calling action method of component with id loginForm:submit
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}
caused by:
org.alfresco.service.cmr.repository.XPathException: Error executing xpath:
xpath: /app:company_home/${spaces.user_spaces.childname}
caused by:
org.jaxen.XPathSyntaxException: Expected one of '.', '..', '@', '*', <QName>
caused by:
class org.jaxen.saxpath.XPathSyntaxException: /app:company_home/${spaces.user_spaces.childname}: 18: Expected one of '.', '..', '@', '*', <QName>
javax.faces.FacesException: Error calling action method of component with id loginForm:submit
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}
caused by:
java.lang.IllegalStateException: Non-unique path: found : /app:company_home/app:user_homes 0
Primary Path: /{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1....
Reference: workspace://SpacesStore/ca52e0dc-80d5-11db-b31e-bb584255ad7e
Type: {http://www.alfresco.org/model/content/1.0}folder
Parent: workspace://SpacesStore/3c2c673d-7902-11db-8697-e79e4834e0e9
07-02-2007 06:39 PM
Anyway, how do I determine what to put there to get user_spaces to work? or to make make user_spaces work like your user_homes?
07-02-2007 06:57 PM
Anyway, how do I determine what to put there to get user_spaces to work? or to make make user_spaces work like your user_homes?
alternatively, how do I properly create a user_homes folder when there's not one?
07-06-2007 10:59 AM
08-21-2007 04:32 PM
Hi
Users created outside LDAP import and the UI are made according to the default home folder provider. This will be used when auto-creating user via NTLM.
See http://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_home_spaces_-_from_1.4_onwards and the the config file authentication-services-context.xml from which you probably want to over-ride the bean …
Andy
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl">
<property name="authenticationDao">
<ref bean="authenticationDao" />
</property>
<property name="authenticationManager">
<ref bean="authenticationManager" />
</property>
<property name="allowGuestLogin">
<value>false</value>
</property>
</bean>
<bean name="homeFolderManager" class="org.alfresco.repo.security.person.HomeFolderManager">
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
<property name="defaultProvider">
<ref bean="companyHomeFolderProvider" />
</property>
</bean>
</beans>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.