Home | History | Annotate | Download | only in test

Lines Matching defs:AUTH

643     AUTH = 99    # Add protocol state to enable auth testing.
651 # AUTH related stuff. It would be nice if support for this were in smtpd.
653 if self.smtp_state == self.AUTH:
670 if not self.extended_smtp or 'AUTH' not in self._extrafeatures:
671 self.push('500 Error: command "AUTH" not recognized')
679 self.push('501 Syntax: AUTH <mechanism> [initial-response]')
688 self.smtp_state = self.AUTH
744 # end AUTH related stuff.
922 self.serv.add_feature("AUTH PLAIN")
929 self.serv.add_feature("AUTH LOGIN")
936 self.serv.add_feature("AUTH CRAM-MD5")
944 self.serv.add_feature("AUTH BOGUS PLAIN LOGIN CRAM-MD5")
953 self.serv.add_feature("AUTH {}".format(mechanism))
961 resp = smtp.auth(mechanism, getattr(smtp, method))
997 #TODO: add tests for correct AUTH method fallback now that the
1213 # RFC 4954's AUTH command allows for an optional initial-response.
1214 # Not all AUTH methods support this; some require a challenge. AUTH
1219 # AUTH PLAIN <initial-response> with the response base 64
1259 self.serv.add_feature('AUTH PLAIN')
1266 self.serv.add_feature('AUTH PLAIN')
1271 code, response = smtp.auth('plain', smtp.auth_plain)