svn commit: samba r26056 - in branches/4.0-python: .
source/auth/credentials source/auth/credentials/tests
jelmer at samba.org
jelmer at samba.org
Tue Nov 20 11:40:31 GMT 2007
Author: jelmer
Date: 2007-11-20 11:40:31 +0000 (Tue, 20 Nov 2007)
New Revision: 26056
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26056
Log:
More bindings.
Modified:
branches/4.0-python/
branches/4.0-python/source/auth/credentials/credentials.i
branches/4.0-python/source/auth/credentials/tests/bindings.py
Changeset:
Property changes on: branches/4.0-python
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/4.0-python/source/auth/credentials/credentials.i
===================================================================
--- branches/4.0-python/source/auth/credentials/credentials.i 2007-11-20 11:40:26 UTC (rev 26055)
+++ branches/4.0-python/source/auth/credentials/credentials.i 2007-11-20 11:40:31 UTC (rev 26056)
@@ -45,12 +45,23 @@
~cli_credentials() {
talloc_free($self);
}
+ /* username */
+ const char *get_username(void);
bool set_username(const char *value,
enum credentials_obtained=CRED_SPECIFIED);
+
+ /* password */
+ const char *get_password(void);
bool set_password(const char *val,
enum credentials_obtained=CRED_SPECIFIED);
+
+ /* domain */
+ const char *get_domain(void);
bool set_domain(const char *val,
enum credentials_obtained=CRED_SPECIFIED);
+
+ /* realm */
+ const char *get_realm(void);
bool set_realm(const char *val,
enum credentials_obtained=CRED_SPECIFIED);
}
Modified: branches/4.0-python/source/auth/credentials/tests/bindings.py
===================================================================
--- branches/4.0-python/source/auth/credentials/tests/bindings.py 2007-11-20 11:40:26 UTC (rev 26055)
+++ branches/4.0-python/source/auth/credentials/tests/bindings.py 2007-11-20 11:40:31 UTC (rev 26056)
@@ -26,12 +26,16 @@
def test_set_username(self):
self.creds.set_username("somebody")
+ self.assertEquals("somebody", self.creds.get_username())
def test_set_password(self):
self.creds.set_password("S3CreT")
+ self.assertEquals("S3CreT", self.creds.get_password())
def test_set_domain(self):
self.creds.set_domain("ABMAS")
+ self.assertEquals("ABMAS", self.creds.get_domain())
def test_set_realm(self):
self.creds.set_realm("myrealm")
+ self.assertEquals("MYREALM", self.creds.get_realm())
More information about the samba-cvs
mailing list