This question about LDAP: Answered
Can Solr get user thumnail images from LDAP?
I'm using LDAP on my site, so instead of grabbing user info from the
UserForm attached to each topic, I want to grab that from LDAP. It looks like you have already provided some nice functionality for this. I copied SolrWikiUsersViewTemplate into MySkinWikiUsersViewTemplate, and it's grabbing telephone numbers and email addresses etcetera. from LDAP, which is great. The problem is, I also want to get user image thumbnails from LDAP but it doesn't seem to have this functionality. I'm wondering if perhaps this feature is already in development, or if you can provide any tips for setting this up? It would be a very handy feature since we already have user thumbnails in LDAP and it doesn't make sense for everyone to also need to upload a picture to their wiki home pages
.
Thanks in advance for any help or advice you can offer.
--
LeilaPearson - 02 Mar 2014
LdapContrib /
LdapNgPlugin does already have means to capture blobs coming from LDAP. See the
blob
parameter to
%LDAP
which does perform the required caching. It then calls
LdapContrib::cacheBlob()
to extract the actual image and make it accessible to the web server.
However these images are
aaall stored at to
foswiki/pub/System/LdapContrib/blobs/md5
.
There are a couple of problems here:
- images don't seem to have a proper image extention (jpeg, png, gif) based on their mime type
- images are not put into the "right" place wherever that is, maybe specified using an
attachtopic
parameter to %LDAP
...
- images are not attached properly using the Foswiki store api;
So Solr can't properly pick them up and associate them to the proper user profile. But hey things don't look that bad frankly. Close but not yet there. Patches welcome
--
MichaelDaum - 27 Feb 2015