AnsweredAssumed Answered

homeFolderProvider when using LDAP

Question asked by asyd on Mar 3, 2008
Latest reply on Mar 4, 2008 by fthamura
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

Outcomes