diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-07-04 12:50:37 +1200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2014-07-15 13:33:57 +0200 |
commit | 66084025273ee8c793e6a947f69579ec0f0a7640 (patch) | |
tree | 4cceffc192317460326cbf1f2f4d284f76b3b16a /source3/torture | |
parent | ca1e4af466af83c0f28804813dc19a77c340f981 (diff) | |
download | samba-66084025273ee8c793e6a947f69579ec0f0a7640.tar.gz |
torture: test_ntlm_auth.py now has a require-membership-of argument
Change-Id: I90c2172af792a082fbf49ee0ab7d6eedf5471440
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Diffstat (limited to 'source3/torture')
-rwxr-xr-x | source3/torture/test_ntlm_auth.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py index cb181be243b..d17af9b0bf9 100755 --- a/source3/torture/test_ntlm_auth.py +++ b/source3/torture/test_ntlm_auth.py @@ -97,6 +97,8 @@ def parseCommandLine(): help="Helper mode for the ntlm_auth server. [default: squid-2.5-server]") parser.add_option("--server-use-winbindd", dest="server_use_winbindd",\ help="Use winbindd to check the password (rather than default username/pw)", action="store_true") + parser.add_option("--require-membership-of", dest="sid",\ + help="Require that the user is a member of this group to authenticate.") parser.add_option("-s", "--configfile", dest="config_file",\ @@ -180,6 +182,11 @@ def main(): server_args.append("--username=%s" % opts.server_username) server_args.append("--password=%s" % opts.server_password) server_args.append("--domain=%s" % opts.server_domain) + if opts.sid: + raise Exception("Server must be using winbindd for require-membership-of.") + else: + if opts.sid: + server_args.append("--require-membership-of=%s" % opts.sid) server_args.append("--configfile=%s" % opts.config_file) |