mirror of
https://github.com/samba-team/samba.git
synced 2025-10-29 04:23:51 +03:00
r26204: Binsings for some more functions.
This commit is contained in:
committed by
Stefan Metzmacher
parent
b45093f01f
commit
ab6be3086f
@@ -89,5 +89,9 @@ typedef struct cli_credentials {
|
||||
bool is_anonymous(void);
|
||||
|
||||
const struct samr_Password *get_nt_hash(TALLOC_CTX *mem_ctx);
|
||||
|
||||
bool authentication_requested();
|
||||
|
||||
bool wrong_password();
|
||||
}
|
||||
} cli_credentials;
|
||||
|
||||
@@ -82,3 +82,11 @@ class CredentialsTests(unittest.TestCase):
|
||||
def test_guess(self):
|
||||
# Just check the method is there and doesn't raise an exception
|
||||
self.creds.guess()
|
||||
|
||||
def test_authentication_requested(self):
|
||||
self.assertFalse(self.creds.authentication_requested())
|
||||
|
||||
def test_wrong_password(self):
|
||||
self.assertTrue(self.creds.wrong_password())
|
||||
self.assertTrue(self.creds.wrong_password())
|
||||
self.assertFalse(self.creds.wrong_password())
|
||||
|
||||
Reference in New Issue
Block a user