Quantcast
Channel: Alfresco Forums - Authentication, LDAP, & SSO
Viewing all articles
Browse latest Browse all 165

Create home folder with LDAP data

$
0
0

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!


Viewing all articles
Browse latest Browse all 165

Trending Articles