Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-03-12 17:56:38 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-03-12 17:56:38 +0300
commit136cac0cc2b014a1e2e530136431c6312799bc68 (patch)
tree2117e50b941fbc63455dad6e7ace79599bbccc57 /scripts
parent10a069b98cfcd15ce811011769d3ed58b5f067ab (diff)
Add a few testgroups to the testauth
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/testauth.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/testauth.py b/scripts/testauth.py
index 88e7d097f..41a5361ff 100755
--- a/scripts/testauth.py
+++ b/scripts/testauth.py
@@ -14,14 +14,15 @@ class ServerAuthenticatorI(Murmur.ServerUpdatingAuthenticator):
for cert in certlist:
cert = X509.load_cert_der_string(cert)
print cert.get_subject(), "issued by", cert.get_issuer()
+ groups = ("GroupA", "GroupB");
if (name == "One"):
if (pw == "Magic"):
- return (1, "One", None)
+ return (1, "One", groups)
else:
return (-1, None, None)
elif (name == "Two"):
if (pw == "Mushroom"):
- return (2, "twO", None)
+ return (2, "twO", groups)
else:
return (-1, None, None)
return (-2, None, None)