1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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>
This commit is contained in:
Garming Sam 2014-07-04 12:50:37 +12:00 committed by Kamen Mazdrashki
parent ca1e4af466
commit 6608402527

View File

@ -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)