(self)
| 418 | _testSaslMech(self, mech, encrypted=True) |
| 419 | |
| 420 | def testSSLPlainAuthzid(self): |
| 421 | if not SASL.extended(): |
| 422 | raise Skipped("Simple SASL server does not support PLAIN") |
| 423 | common.ensureCanTestExtendedSASL() |
| 424 | |
| 425 | clientUser = 'user@proton' |
| 426 | authzid = 'user2' |
| 427 | mech = 'PLAIN' |
| 428 | |
| 429 | self.c1.user = clientUser |
| 430 | self.c1.authorization = authzid |
| 431 | self.c1.password = 'password' |
| 432 | self.c1.hostname = 'localhost' |
| 433 | |
| 434 | self.client_domain.set_peer_authentication(SSLDomain.ANONYMOUS_PEER) |
| 435 | |
| 436 | _sslConnection(self.client_domain, self.t1, self.c1) |
| 437 | _sslConnection(self.server_domain, self.t2, self.c2) |
| 438 | |
| 439 | _testSaslMech(self, mech, authzid=authzid, encrypted=True) |
| 440 | |
| 441 | def testSSLPlainSimpleFail(self): |
| 442 | if not SASL.extended(): |
nothing calls this directly
no test coverage detected