cancel
Showing results for 
Search instead for 
Did you mean: 

homeFolderProvider when using LDAP

asyd
Champ in-the-making
Champ in-the-making
Hi,

I want to use LDAP authentication in alfresco 2.1. While the authentication itself is working good, howerver, I can't have homeFolderProvider working like what I want. Indeed, when a new user log in to alfresco, its Home Space is "Company Home/login" while I want "Company Home/User Homes/login".

I tried to play with the following code in <extensionRoot>/classes/alfresco/extensions/ldap-authentication-context.xml :



                <!– Always use the default –>
                <entry key="cm:homeFolderProvider">
                        <null/>
                </entry>
            </map>
        </property>

        <!– Set a default home folder provider –>
        <!– Defaults only apply for values above –>
        <property name="attributeDefaults">
            <map>
                <entry key="cm:homeFolderProvider">
                    <value>userHomesHomeFolderProvider</value>
                </entry>
            </map>
        </property>

But it's not working. I even tried to create my own bean, using following configuration:


        <property name="path">
           <value>/${spaces.company_home.childname}/${spaces.user_homes.childname}</value>
        </property>

or


        <property name="path">
           <value>/Company Home/User Homes</value>
        </property>


Any help/ideas are welcome
3 REPLIES 3

yann_hamon
Champ in-the-making
Champ in-the-making
*Up*
I am also interested in the answer, same basic setup Smiley Happy

janv
Employee
Employee
For Alfresco 2.1.0 Community, I believe you should also override the homeFolderManagerBean by adding it to your alfresco/extension/ldap-authentication-context.xml


    <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="userHomesHomeFolderProvider" />
        </property>
    </bean>

See also: http://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_home_spaces_-_from_1.4_onwards

Note: "User Homes" is now the default with Alfresco 2.1.0 Enterprise and higher.

Regards,
Jan

fthamura
Champ in-the-making
Champ in-the-making
i am using alfresco 2.9b, the default still Company Home

any idea?
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.