Jump to content

LDAP Import - Photo's

Recommended Posts

46 minutes ago, Martyn Houghton said:

Would it be possible via the LDAP Importer to populate/update the analyst pictures in Hornbill from the picture held in the active directory?



Hi @Martyn Houghton,

I had already queried this before and I have no idea where I got my response from. This is currently possible to do:

Do a search for "ImageLink" and the details are there. You will need to upgrade your LDAP_Import tool and Conf files if you havent done so for a while. The URI we use is "thumbnailPhoto" which also has to be defined under LDAPAttributes. The example provided on the Github link below is basically what we use

Github Link: https://github.com/hornbill/goLDAPUserImport

Hope that helps,


Link to comment
Share on other sites

Well got a bit further, have updated to version 2..2.1 of the tool and configured it as per the Wiki, but for each user we get the following error.

2017/09/08 12:29:07 [DEBUG] Roles Added Successfully
2017/09/08 12:29:07 [DEBUG] Image Lookup URI: thumbnailPhoto
2017/09/08 12:29:07 [DEBUG] DAV Upload URL: https://eurapi.hornbill.com/XXXXXXXXXX/dav/session/martyn.houghton.jpg
2017/09/08 12:29:07 [DEBUG] Uploaded
2017/09/08 12:29:07 [DEBUG] Profile Set Image URL: /session/martyn.houghton.jpg
2017/09/08 12:29:07 [ERROR] Unable to Associate Image to User Profile: ESP Image Converter Tool failed
2017/09/08 12:29:07 [DEBUG] Processing User Profile Data martyn.houghton
2017/09/08 12:29:07 [DEBUG] User Profile Update Success
2017/09/08 12:29:07 [DEBUG] User Update Skipped

Config contains the following settings, and thumbnailPhoto is listed in the attributes section. Also tried it with the png option.

        "Enabled": true,
        "UploadType": "AD",
        "InsecureSkipVerify": true,
        "ImageType": "jpg",
        "URI": "thumbnailPhoto"

Just going to double check with our IT that they are using the standard thumbnailPhoto attribute for storing staff images.



Link to comment
Share on other sites

@Martyn Houghton

Can you change  "URI": "thumbnailPhoto" to  "URI": "[thumbnailPhoto]" and try again please? This was a change made recently to keep field mapping unique across the configuration variables. 

Also make sure thumbnailPhoto is listed in the attributes section of the configuration. 

Kind Regards

Trevor Killick

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...