User login overwrites user fields
For those that are interested, the solution was that there is a setting in the LDAP module called AUTH_LDAP_ALWAYS_UPDATE_USER which you need to set to False to make sure it doesn't update every time.
I have a Django app which uses LDAP as the authentication backend.
I'm not sure whether it's the LDAP module or just Django itself but, if a user changes their email address, first name or last name and then logs out and back in again, the values revert to their original values (ie. the ones obtained from the LDAP record).
Has anyone seen this kind of behaviour before and is there any way to prevent it?
The problem I have is that the email addresses in the LDAP records are incorrect and need updating but I have no control over them. The only thing I can control is the Django user database.