diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-03-12 17:56:38 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-03-12 17:56:38 +0300 |
commit | 136cac0cc2b014a1e2e530136431c6312799bc68 (patch) | |
tree | 2117e50b941fbc63455dad6e7ace79599bbccc57 /scripts | |
parent | 10a069b98cfcd15ce811011769d3ed58b5f067ab (diff) |
Add a few testgroups to the testauth
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/testauth.py | 5 |
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) |