diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-01 17:26:32 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-02 07:05:44 +0100 |
commit | cfa33c45675c55689018ee700e07c81566904ea6 (patch) | |
tree | 4a00727ac6cf94fa24045e7c4cb894f20d4f1785 /source3/torture | |
parent | 19cfa3e604b5bb8ffa155182d6c24a2fe883e6da (diff) | |
download | samba-cfa33c45675c55689018ee700e07c81566904ea6.tar.gz samba-cfa33c45675c55689018ee700e07c81566904ea6.tar.bz2 samba-cfa33c45675c55689018ee700e07c81566904ea6.zip |
s3-selftest: Add tests for ntlm_auth gss-spnego client and server
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar 2 07:05:44 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rwxr-xr-x | source3/torture/test_ntlm_auth.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py index 1ee5b83bd7..cb181be243 100755 --- a/source3/torture/test_ntlm_auth.py +++ b/source3/torture/test_ntlm_auth.py @@ -81,6 +81,12 @@ def parseCommandLine(): parser.add_option("--client-helper", dest="client_helper",\ help="Helper mode for the ntlm_auth client. [default: ntlmssp-client-1]") + parser.add_option("--target-hostname", dest="target_hostname",\ + help="Target hostname for kerberos") + parser.add_option("--target-service", dest="target_service",\ + help="Target service for kerberos") + + parser.add_option("--server-username", dest="server_username",\ help="User name server uses for local auth. [default: foo]") parser.add_option("--server-password", dest="server_password",\ @@ -137,6 +143,10 @@ def main(): client_args.append("--password=%s" % opts.client_password) client_args.append("--domain=%s" % opts.client_domain) client_args.append("--configfile=%s" % opts.config_file) + if opts.target_service: + client_args.append("--target-service=%s" % opts.target_service) + if opts.target_hostname: + client_args.append("--target-hostname=%s" % opts.target_hostname) os.execv(ntlm_auth_path, client_args) |