From ab6be3086f7ad8c22e6f4805bccad5a04c0325f2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 29 Nov 2007 16:01:11 +0100 Subject: [PATCH] r26204: Binsings for some more functions. --- source/auth/credentials/credentials.i | 4 ++++ source/auth/credentials/tests/bindings.py | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/source/auth/credentials/credentials.i b/source/auth/credentials/credentials.i index 2edda111b4f..e694f933513 100644 --- a/source/auth/credentials/credentials.i +++ b/source/auth/credentials/credentials.i @@ -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; diff --git a/source/auth/credentials/tests/bindings.py b/source/auth/credentials/tests/bindings.py index 9bb49a12a55..6253e8fbad7 100644 --- a/source/auth/credentials/tests/bindings.py +++ b/source/auth/credentials/tests/bindings.py @@ -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()) -- 2.34.1