diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-21 23:35:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:09 -0500 |
commit | 13b0776f60f6a0f35a4afc2b3d3c6b5ec9c1ca6a (patch) | |
tree | 8eddfcb0dd18a9cee4c1de4fbd3ee98f05cd27e6 /source4/torture/torture.c | |
parent | 05bc2d7b2c11a3583a6d1221cfbd618eb6730518 (diff) | |
download | samba-13b0776f60f6a0f35a4afc2b3d3c6b5ec9c1ca6a.tar.gz samba-13b0776f60f6a0f35a4afc2b3d3c6b5ec9c1ca6a.tar.bz2 samba-13b0776f60f6a0f35a4afc2b3d3c6b5ec9c1ca6a.zip |
r5929: Use cli_credentials for the SMB functions as well.
Fix a couple of bugs in the new cli_credentials code
(This used to be commit 4ad481cfe5cde514d2ef9646147239f3faaa6173)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index dce91452f1..cdc9efbf7c 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -80,16 +80,12 @@ BOOL torture_open_connection_share(struct smbcli_state **c, const char *sharename) { NTSTATUS status; - const char *username = cli_credentials_get_username(cmdline_credentials); - const char *userdomain = cli_credentials_get_domain(cmdline_credentials); - const char *password = cli_credentials_get_password(cmdline_credentials); status = smbcli_full_connection(NULL, c, lp_netbios_name(), hostname, sharename, NULL, - username, username[0]?userdomain:"", - password); + cmdline_credentials); if (!NT_STATUS_IS_OK(status)) { printf("Failed to open connection - %s\n", nt_errstr(status)); return False; @@ -726,16 +722,12 @@ static BOOL run_tcon_devtype_test(void) BOOL ret = True; const char *host = lp_parm_string(-1, "torture", "host"); const char *share = lp_parm_string(-1, "torture", "share"); - const char *username = cli_credentials_get_username(cmdline_credentials); - const char *userdomain = cli_credentials_get_domain(cmdline_credentials); - const char *password = cli_credentials_get_password(cmdline_credentials); status = smbcli_full_connection(NULL, &cli1, lp_netbios_name(), host, share, NULL, - username, userdomain, - password); + cmdline_credentials); if (!NT_STATUS_IS_OK(status)) { printf("could not open connection\n"); |