svn commit: samba r26204 - in branches/SAMBA_4_0: .
source/auth/credentials source/auth/credentials/tests
jelmer at samba.org
jelmer at samba.org
Thu Nov 29 16:01:13 GMT 2007
Author: jelmer
Date: 2007-11-29 16:01:11 +0000 (Thu, 29 Nov 2007)
New Revision: 26204
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26204
Log:
Binsings for some more functions.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/auth/credentials/credentials.i
branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.i
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.i 2007-11-29 16:01:08 UTC (rev 26203)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.i 2007-11-29 16:01:11 UTC (rev 26204)
@@ -89,5 +89,9 @@
bool is_anonymous(void);
const struct samr_Password *get_nt_hash(TALLOC_CTX *mem_ctx);
+
+ bool authentication_requested();
+
+ bool wrong_password();
}
} cli_credentials;
Modified: branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py 2007-11-29 16:01:08 UTC (rev 26203)
+++ branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py 2007-11-29 16:01:11 UTC (rev 26204)
@@ -82,3 +82,11 @@
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())
More information about the samba-cvs
mailing list