fixes #3827 - ldap avatar support