mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:libsmb: make use of cli_tree_connect()
metze
This commit is contained in:
parent
b378abe455
commit
ee36217c40
@ -223,8 +223,8 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
|
||||
|
||||
/* must be a normal share */
|
||||
|
||||
status = cli_tcon_andx(c, sharename, "?????",
|
||||
password, strlen(password)+1);
|
||||
status = cli_tree_connect(c, sharename, "?????",
|
||||
password, strlen(password)+1);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
d_printf("tree connect failed: %s\n", nt_errstr(status));
|
||||
cli_shutdown(c);
|
||||
@ -1062,7 +1062,7 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
|
||||
|
||||
/* check for the referral */
|
||||
|
||||
if (!NT_STATUS_IS_OK(cli_tcon_andx(cli, "IPC$", "IPC", NULL, 0))) {
|
||||
if (!NT_STATUS_IS_OK(cli_tree_connect(cli, "IPC$", "IPC", NULL, 0))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -314,9 +314,11 @@ SMBC_server_internal(TALLOC_CTX *ctx,
|
||||
* tid.
|
||||
*/
|
||||
|
||||
status = cli_tcon_andx(srv->cli, srv->cli->share, "?????",
|
||||
*pp_password,
|
||||
strlen(*pp_password)+1);
|
||||
status = cli_tree_connect(srv->cli,
|
||||
srv->cli->share,
|
||||
"?????",
|
||||
*pp_password,
|
||||
strlen(*pp_password)+1);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
cli_shutdown(srv->cli);
|
||||
@ -507,8 +509,8 @@ SMBC_server_internal(TALLOC_CTX *ctx,
|
||||
|
||||
/* must be a normal share */
|
||||
|
||||
status = cli_tcon_andx(c, share, "?????", *pp_password,
|
||||
strlen(*pp_password)+1);
|
||||
status = cli_tree_connect(c, share, "?????", *pp_password,
|
||||
strlen(*pp_password)+1);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
cli_shutdown(c);
|
||||
|
@ -134,7 +134,7 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
|
||||
}
|
||||
}
|
||||
|
||||
result = cli_tcon_andx(cli, "IPC$", "IPC", "", 1);
|
||||
result = cli_tree_connect(cli, "IPC$", "IPC", "", 1);
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
if (asprintf(err_str, "machine %s rejected the tconX on the "
|
||||
"IPC$ share. Error was : %s.\n",
|
||||
|
Loading…
Reference in New Issue
Block a user