Create home folder with LDAP data
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2015 04:18 AM
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
then I add the bean provider on ldap-authentication-contex
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!
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!
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2015 09:50 AM
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!
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2015 02:16 AM
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.
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.
