user's photo from AD to Alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
javajunior
Active Member

user's photo from AD to Alfresco

Hello.

I synchronize user settings from AD, but there is no direct way to transfer photos.
We have: photo in user settings in AD
matching parameters in common-ldap-context.xml

<entry key="cm:firstName">
      <value>${ldap.synchronization.userLastNameAttributeName}</value>
</entry>
<entry key="cm:lastName">
      <value>${ldap.synchronization.userFirstNameAttributeName}</value>
</entry>
<entry key="cm:telephone">
      <value>telephoneNumber</value>
</entry>
<entry key="cm:mobile">
      <value>mobile</value>
</entry>
<entry key="cm:jobtitle">
      <value>${ldap.synchronization.userJobTitleAttributeName}</value>
</entry>

 where (from ldap-ad-authentication.properties file)

ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userJobTitleAttributeName=title


but record

<entry key="cm:avatar">
      <value>${ldap.synchronization.userAvatarAttributeName}</value>
</entry>

where (ldap-ad-authentication.properties file)

ldap.synchronization.userAvatarAttributeName=thumbnailPhoto

does not work.


Maybe there is some solution to this issue?
Help me please.

2 Replies
redouane
Member II

Re: user's photo from AD to Alfresco

do you find a solution?
I have the same problem as you.

afaust
Master

Re: user's photo from AD to Alfresco

Since images in LDAP are binary data / BLOBs, and the Alfresco element for user's avator is managed via a child-association, which isn't handled in the same way that any other, trivial properties are, this is plain not possible using any configuration with default Alfresco. You will need to use addons for this. In one of my addons I once added support for handling photos in LDAP sync, but to be fair, I haven't updated that addon in a long time to be compatible with newer Alfresco versions (I no longer work with the customer for which I originally created that addon, and there hasn't been any other interest from the community). I know that others have also implemented similar functionality, e.g. with a quick Google search I found a config snippet in another module that looks to support avatar synch.