'(typ, [data]) = login(user, password)
Identify client using plaintext password.
NB: \'password\' will be quoted.'

def login(self, user, password, **kw):

    try:
        (typ, dat) = self._simple_command('LOGIN', user, self._quote(password))
        if (typ != 'OK'):
            self._deliver_exc(self.error, dat[(-1)], kw)
        self.state = AUTH
        if __debug__:
            self._log(1, 'state    =>    AUTH')
    finally:
        self._release_state_change()
    return self._deliver_dat(typ, dat, kw)
