fixes #3827 - adds ldap avatar support