summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-16Rename obscure defined constants.Christopher R. Hertel (crh)1-4/+5
Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
2012-01-31s3:client: ignore SMBecho errors (the server may not support it) (bug #8139)Stefan Metzmacher1-3/+7
metze
2012-01-31Revert "Fix bug #8139 - smbclient fails if server does not support Echo ↵Stefan Metzmacher1-5/+1
request." This reverts commit 1fdc96ecaff8ca12e9aa0082527468ad4242a8a9. This is wrong in master as the error codes are different compared to 3.5.x. The correct way to handle this is to call cli_state_is_connected(). metze
2012-01-31Fix bug #8139 - smbclient fails if server does not support Echo request.Jeremy Allison1-1/+5
Based on work by Matthias Scheler <tron@NetBSD.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jan 31 00:47:19 CET 2012 on sn-devel-104
2012-01-25Introduce dump_data_fileVolker Lendecke1-7/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
2011-12-03Move the callers that need to use the new cli_open() back to callingJeremy Allison1-118/+3
it from cli_openx().
2011-12-03Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison1-1/+1
with a call that uses NTCreateX in preference to OpenAndX.
2011-12-02Ensure we map our own Samba return of ERRSRV, ERRunknownsmbJeremy Allison1-0/+3
on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
2011-12-02Convert smbclient to using NtCreateX by preference, fall back to openX onJeremy Allison1-3/+115
'not implemented' or similar error.
2011-12-02Add the "backup" toggle command to smbclient. In order for this to beJeremy Allison1-0/+14
really useful we need to change to using NTCreateX opens by default in cli_open() and fall back to old OpenX calls instead of doing it the other way around. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 2 00:23:13 CET 2011 on sn-devel-104
2011-11-24s3:client: make use of cli_tree_connect()Stefan Metzmacher1-1/+1
metze
2011-11-03s3:client: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher1-1/+1
metze
2011-09-29Bug 7551: Return error of cli_push when 'put - /some/file' is usedBram1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104
2011-09-08s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()Stefan Metzmacher1-1/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
2011-08-02s3:client: make use of cli_state_protocol()Stefan Metzmacher1-1/+1
metze
2011-07-28s3:smbclient: use lp_load_client()Michael Adam1-3/+1
2011-07-23s3-client/client.c: replace cli_query_secdesc_old()Björn Baumbach1-5/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()Björn Baumbach1-1/+1
Will introduce new cli_query_secdesc() function Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-22s3:client: make use of cli_state_remote_name()Stefan Metzmacher1-1/+1
metze
2011-07-22s3:smbclient: print nt status code when smb echo failsMichael Adam1-2/+2
2011-07-22s3:smbclient: add a "tdis" command to view and change the tree id (tid).Michael Adam1-0/+25
This low level command can be used to switch between tree connects in one session.
2011-07-22s3:smbclient: add a "tdis" command to do a tree disconnect (close a ↵Michael Adam1-0/+19
connection to a share)
2011-07-22s3:smbclient: add a "tcon" command to do a tree connect (connect to a share)Michael Adam1-0/+34
2011-07-22s3:smbclient: add "logoff" command to close the sessionMichael Adam1-0/+19
2011-07-21s3:libsmb: move cli->vuid to cli->smb1.uid and hide it behind ↵Stefan Metzmacher1-3/+4
cli_state_[g|s]et_uid() metze
2011-07-11s3:client: simplify readline_callback() to only use cli_echo()Stefan Metzmacher1-54/+9
cli_echo() already swallows NBT keepalive messages, so there's no need to filter them in the 'smbclient' layer. metze
2011-07-08s3:client: use an inbuf on the stack in readline_callback()Stefan Metzmacher1-2/+3
metze
2011-07-08s3:libsmb: remove unused enum smb_read_errors infrastructureStefan Metzmacher1-16/+1
metze
2011-07-08s3:client: close the socket if receive_smb_raw() failsStefan Metzmacher1-0/+5
metze
2011-07-08s3:client: use cli_nt_error() in order to avoid cli_errstr()Stefan Metzmacher1-3/+8
metze
2011-07-08s3:client: avoid cli_errstr() where we already have an NTSTATUSStefan Metzmacher1-39/+67
metze
2011-07-07s3-client: Remove use of cli_errstr()Björn Baumbach1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-06s3:libsmb: use clistr_pull_talloc() in cli_get_fs_volume_info()Stefan Metzmacher1-3/+4
metze
2011-07-06s3: Remove cli_errstr from cmd_posix_openVolker Lendecke1-5/+12
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jul 6 09:45:11 CEST 2011 on sn-devel-104
2011-07-06s3: Fix error logic in posix_openVolker Lendecke1-2/+2
2011-07-06s3: Remove a few uses of cli_errstrVolker Lendecke1-26/+27
2011-07-06s3: make cli_resolve_path return NTSTATUSVolker Lendecke1-36/+106
This looks larger than it is. No parameters needed changing.
2011-07-03s3: Make cli_cm_open return NTSTATUSVolker Lendecke1-24/+38
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jul 3 23:57:53 CEST 2011 on sn-devel-104
2011-07-03s3: Read symlink information in smbclient "allinfo"Volker Lendecke1-0/+17
2011-06-24s3: Fix an error message in smbclient symlinkVolker Lendecke1-1/+1
2011-06-24s3: Use reparse point style symlinksVolker Lendecke1-18/+18
2011-06-24s3: Remove a call to cli_errstrVolker Lendecke1-2/+4
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett1-19/+1
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-06-09s3-param Remove special case for lp_workgroup()Andrew Bartlett1-14/+1
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-06-09s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-01Change sys_getcd() to take no arguments and always return malloc'ed memory ↵Jeremy Allison1-2/+3
(or NULL). Part of the efforts to remove PATH_MAX on modern systems.
2011-05-29s3: Use cli_connect_nb in do_message_opVolker Lendecke1-33/+3
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 10:11:54 CEST 2011 on sn-devel-104
2011-05-06s3-libsmb: move protos to libsmb/proto.hGünther Deschner1-0/+1
Guenther
2011-05-04Fix warning messages caused by addition of null check in fstrcpy macro.Jeremy Allison1-2/+2
2011-05-04Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here ↵Jeremy Allison1-1/+1
as the original macro auto-added the -1.