adding support for profile photo sync when an ldap flag is set