Menu

#73 Support buddy photos from contactCard

closed-fixed
None
Pidgin
5
2014-06-07
2014-06-04
Peter Fales
No

I noticed in the release notes that support was added for showing buddy photos with Lync 2013. We're using Lync 2010 which supports buddy photos in the official Windows client - any chance of getting that supported by Sipe with Lync 2010?

Discussion

  • Stefan Becker

    Stefan Becker - 2014-06-04

    Buddy photos have originally been added for Lync 2010 and I remember them working with an Office 365 account back then.

    I can only guess that your buddy photos are stored in AD. I remember vaguely looking at accessing information from AD via LDAP. But I was unable to find any LDAP library that could be used in SIPE code.

    You might want to provide a --debug log showing the error messages.

    Unless further information is provided I'll close this as "will not implement".

     
  • Peter Fales

    Peter Fales - 2014-06-04

    I've attached the debug log file. There are number of references to photo uri's and "useADPhoto" but nothing that is obviously an error message.

     
  • Stefan Becker

    Stefan Becker - 2014-06-05

    Copied from the forum discussion [0b465de7]:

    I can only assume that <displayadphoto>true</displayadphoto> means that > the photo is only stored in the Windows AD. SIPE doesn't talk to Windows > AD and I'm not sure if it is possible at all or with what effort

    • I guess LDAP is required
    • LDAP implementation, autodiscovery, authentication?
    • portability issues if an external LDAP library needs to be used?
    • test environment available?
    :::sh
    ldapsearch -H ldap://<ADSERVER> -b 'dc=<DOMAIN>,dc=com' -Omaxssf=0 '(msrtcsip-primaryuseraddress=sip:USER@DOMAIN.com)' -LLL thumbnailphoto
    

    This requires valid authentication, i.e. a Kerberos TGT.

    The returned thumbnailphoto attribute contains a JPEG file in a base64 encoded string.

     

    Related

    Forums: 0b465de7

  • Stefan Becker

    Stefan Becker - 2014-06-05
    • summary: Contact photos with Lync 2010? --> Support buddy photos stored in AD
     
  • Peter Fales

    Peter Fales - 2014-06-05

    I don't claim to really understand all this, but I don't think it needs ldap. The log shows references to things like

    <photo type="default" updated="2014-06-02T14:24:56Z"> <uri>http://faces.all.alcatel-lucent.com/l/XXXXXXX</uri><hash>3515179018l</hash></photo>

    and if do a "wget http://faces.all.alcatel-lucent.com/l/XXXXX" from the command line it retreives a jpeg file with the person's photo.

     

    Last edit: Peter Fales 2014-06-05
  • Stefan Becker

    Stefan Becker - 2014-06-05
    • summary: Support buddy photos stored in AD --> Support buddy photos from contactCard
    • assigned_to: Stefan Becker
     
  • Stefan Becker

    Stefan Becker - 2014-06-05

    Implemented in git commit 6b2f571. Please verify that this works for you, because none of my accounts has photo nodes in the contactCard XML.

     
  • Peter Fales

    Peter Fales - 2014-06-05

    I think there may be a mismatch between process_incoming_notify_rlmi() (in sipe-notify.c around line 684) which passes "photo_url, hash, NULL" and sipe_buddy_update_photo() (in sipe-buddy.c around line 1741) which has "hash" first and "photo_url second"

    I swapped the order of the parameters in sipe-notify.c, and now I have buddy photos! Thanks!

     

    Last edit: Peter Fales 2014-06-05
  • Stefan Becker

    Stefan Becker - 2014-06-06

    Thanks. Fixed in git commit fe8c19a

     
  • Stefan Becker

    Stefan Becker - 2014-06-07

    CLOSING

     
  • Stefan Becker

    Stefan Becker - 2014-06-07
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB