'Most of our properties are cached from the LDAP server. We only want to
pickle a few crucial things.'

def __getstate__(self):

    return dict(((k, v) for (k, v) in self.__dict__.items() if (k in ['backend', '_username', '_user'])))
