Update from LDAP fix

This little change fixes the profile update from LDAP for me. I'd like to know whether the change makes it work for others or whether it breaks it for them.