diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-28 00:58:28 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:32 +0100 |
commit | 5c97bbf3ef69e45f3ec7958792868e1e8e605d38 (patch) | |
tree | 7964207a9e95435efcd2f38a05916910a79b0ce6 /source3 | |
parent | 8a9bfd61b7679a4844a6a7b1af2c19ec6cf244b0 (diff) | |
download | samba-5c97bbf3ef69e45f3ec7958792868e1e8e605d38.tar.gz samba-5c97bbf3ef69e45f3ec7958792868e1e8e605d38.tar.bz2 samba-5c97bbf3ef69e45f3ec7958792868e1e8e605d38.zip |
s3:torture: replace smb2cli_sesssetup_ntlmssp() with the more generic cli_session_setup()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/test_smb2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 0c4944f1f0..940f3a69e1 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -23,6 +23,7 @@ #include "../libcli/smb/smbXcli_base.h" #include "libsmb/smb2cli.h" #include "libcli/security/security.h" +#include "libsmb/proto.h" extern fstring host, workgroup, share, password, username, myname; @@ -51,9 +52,12 @@ bool run_smb2_basic(int dummy) return false; } - status = smb2cli_sesssetup_ntlmssp(cli, username, workgroup, password); + status = cli_session_setup(cli, username, + password, strlen(password), + password, strlen(password), + workgroup); if (!NT_STATUS_IS_OK(status)) { - printf("smb2cli_sesssetup returned %s\n", nt_errstr(status)); + printf("cli_session_setup returned %s\n", nt_errstr(status)); return false; } |