cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] HomeFolder - one4all - how?

mfischer
Champ in-the-making
Champ in-the-making
Hi, i got Alfresco 3.2r CE working on Ubuntu Server 8.04 after a lot of work and pain. It is authentifying the users against a 2003 Active Directory (passthru) and syncs its users and groups via ldap-ad.

Now i want to set an existing folder as default home folder for all users automatically if they log in the first time. ATM for every user a new folder is being created under /Company Home/User Homes which i want to prevent.

And if i change the home folder of an existing user, it would be renamed to the respective username, how can i prevent this?

Any help would be appreciated.
1 REPLY 1

mfischer
Champ in-the-making
Champ in-the-making
I got a solution in the german Alfresco forum (Gemeinsamer Ordner als Home für alle User😞

1. In Alfresco Web Client create a folder, e.g. "Welcome" under "/Company Home".

2. In filesystem create the file "custom-authentication-services-context.xml" in "shared/classes/alfresco/extension/" which contains the following:


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <bean name="myHomeFolderProvider" class="org.alfresco.repo.security.person.ExistingPathBasedHomeFolderProvider" parent="baseHomeFolderProvider">
        <property name="path">
           <value>/${spaces.company_home.childname}/cm:Welcome</value>
        </property>
        <property name="storeUrl">
           <value>${spaces.store}</value>
        </property>
    </bean>
</beans>

3. Change "ldap.synchronization.defaultHomeFolderProvider" in "shared/classes/alfresco-global.properties":

ldap.synchronization.defaultHomeFolderProvider=myHomeFolderProvider

4. Restart Alfresco/Tomcat

New (!) users will now getting this folder "/Company Home/Welcome" as a common HomeFolder 4all. Of course it should be possible to change the HomeFolder-Property for a single user via admin control panel to another Location, where this user can manage its own stuff.

As i understand, you can manage the folder permissions inside of Alfresco via the respective options or with additional code in the above XML file, take a look at the Wiki: http://wiki.alfresco.com/wiki/Security_Services#Creating_home_spaces_-_from_1.4_onwards (the part with the "ExistingPathBasedHomeFolderProvider").

Regards,
Mario

PS: thx to Steffen for showing me this way  Smiley Happy
Getting started

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.