Not able to parse photo data from Active Directory


  • I am able to bind foreman to our AD server to use AD LDS part of ldap.
  • Instead of rendering the photo data into picture, it just show raw photo data.


  • ldapsearch result of my AD account to my AD server.


  • Attribute Mapping mapped to thumnailPhoto for photo.


Expected outcome:
Seeing my photo from AD server after login into foreman as my AD account.

Foreman and Proxy versions:
Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

We don’t say it explicitly, but it MUST be BASE64 JPEG format, not PNG or anything like that.

Hey, can you pastebin example of a photo so we can try to load it? To rule out format issue.

1 Like

Since you liked my comment, I marked it as an answer. If you need non-JPEG formats, feel free to do a patch. Should not be difficult.

@lzap, Thanks on following up on this question, pls keep this thread as answered. the current picture data works on outlook client/Skype software. I need to do my own home work to download picture portion of data and verify it’s format. I will update this thread once I got a chance to do it.

1 Like