cancel
Showing results for 
Search instead for 
Did you mean: 

Create home folder with LDAP data

politrons
Champ in-the-making
Champ in-the-making
I´m importing user from LDAP and I would like to create home folders with instead the name of the user the organization  that he has on LDAP.
So far I modify the ldap-authentication.properties with my provider
   
     
 ldap.synchronization.defaultHomeFolderProvider=organizationHomeFolderProvider 


then I add the bean provider on ldap-authentication-contex


         <bean name="organizationHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
        <property name="serviceRegistry">
           <ref bean="ServiceRegistry" />
        </property>
        <property name="path">
          <value>/${spaces.company_home.childname}/HERE I WANT ADD THE ORGANIZATION FOR EVERY USER</value>
        </property>
        <property name="storeUrl">
           <value>${spaces.store}</value>
        </property>
        <property name="onCreatePermissionsManager">
            <ref bean="defaultOnCreatePermissionsManager" />
        </property>
        <property name="onReferencePermissionsManager">
            <ref bean="defaultOnReferencePermissionsManager" />
        </property>
        <property name="homeFolderManager">
           <ref bean="homeFolderManager" />
        </property>
    </bean>



So basically I want create a home folder with the structure /Company home/Organization of the user.  But I´m completely  lost, no documentation at all about how to achieve this.

Please any help would be great!
2 REPLIES 2

borisstankov
Champ in-the-making
Champ in-the-making
HI,

I never had such problem, but here is what I found on the topic:
http://wiki.alfresco.com/wiki/Security_and_Authentication#Home_Folder_Provider_Properties
Hope this helps!

Regards!

Thanks for the response.
I read the home folder provider documentation thousand of times, and using largeHomeFolderProvider with organization as regex key(spaces.user_homes.regex.key=organization) always was telling me that organization property was null or empty. But when I connected to Alfresco organization information was there.
Did you try that particular case?

Regards.