'A new LDAPUser must be initialized with either a username or an
authenticated User object. If a user is given, the username will be
ignored.'

def __init__(self, backend, username=None, user=None):

    self.backend = backend
    self._username = username
    if (user is not None):
        self._set_authenticated_user(user)
    if ((username is None) and (user is None)):
        raise Exception('Internal    error:    _LDAPUser    improperly    initialized.')
