fixed ReadOnlyException when an LDAP user logged in for the first time