cancel
Showing results for 
Search instead for 
Did you mean: 

add email alias from LDAP to HomeFolder

murph81
Champ in-the-making
Champ in-the-making
Hi everyone,

I want to import user from an existing LDAP directory and auto-create their home folder (folder name = uid) in the process. The folder should also have an email alias with the users email adress from LDAP. My goal is to use alfresco as an email to CIFS Share gateway (with SSO via NTLM).

There are several howtos available which explain the necessary steps to import users from LDAP e.g http://forum.univention.de/viewtopic.php?f=20&t=450 (in german). I also found out that there is a personalHomeFolderProvider and a userHomeFolderProvider to control where the spaces are created. Regarding to this howto http://oceanobservatories.org/spaces/display/CIDev/Alfresco+Authentication the use of UIDBasedHomeFolderProvider should create home folders named after the uid from LDAP.

Is it possible to modify one of the HomeFolderProviders to make them add the email alias while creating the folders? I tried to find something in the source code but had no luck.

Thanks

Marvin Martins
1 REPLY 1

steffen
Champ in-the-making
Champ in-the-making
Hi,

I think that should be possible by extending the UIDBasedHomeFolderProvider class (or create a own implementaion of the HomeFolderProvider interface). In our class you could handle the email adress… After creating a new sping bean for this class you have to change a property in ldap-synchronisation.properties to point to your new beanID:

ldap.synchronisation.defaultHomeFolderProvider=yourHomeFolderBeanID

HTH

steffen