summaryrefslogtreecommitdiffstats
path: root/source3/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-04-151-38/+40
| | | | | | | | | | callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy. (cherry picked from commit 8b44877eb82c1c9270cb8099fefc621922f82719)
* Remove the static "struct client_connection" mess which is part ofJeremy Allison2009-03-121-11/+11
| | | | | | | | the problem that stops libsmbclient being thread safe. Subsidiary DFS connections are now hung off a list inside the cli_state struct. Much more to do in order to get libsmbclient to thread safety, but this is a good start. Jeremy.
* Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher2009-03-121-6/+4
| | | | | | | | | | | | | buffers" This reverts commit 9579a6f193f570e4ce2af80f4aac7c2f25ae5b22. It's confusing to have a boolean to alter the behavior of cli_push and as the new feature isn't used yet I revert it. We can readd a extra function later. metze
* s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher2009-03-101-4/+6
| | | | metze
* More warning fixes for Solaris.Jeremy Allison2009-02-231-3/+3
| | | | Jeremy.
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-15/+8
| | | | | the connections list and authentication structures to worry about. Jeremy
* Remove another global from clidfs that is only used in client.c.Jeremy Allison2009-01-141-6/+11
| | | | Jeremy.
* Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison2009-01-081-4/+4
| | | | Jeremy.
* Fix bug 6014 -- mget shouldn't segfault without argumentsVolker Lendecke2009-01-051-0/+5
| | | | | | Thanks to kevin.paulus@mtm.kuleuven.be for the bug report Volker
* Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison2009-01-021-5/+8
| | | | | | | from libsmb/clidfs.c. Keep the '-I<address>' option in smbclient working. The intent is to remove all globals from libsmb/clidfs.c. Jeremy.
* Fix more asprintf and "ignoring return code" warnings from gcc 4.3.Jeremy Allison2008-12-311-24/+36
| | | | Jeremy.
* Make smbclient "put" use cli_pushVolker Lendecke2008-12-191-37/+31
| | | | | This should fill the TCP socket even beyond the smbclient io_bufsize, very much like smbclient "get" should do it since 3.2
* Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2008-12-141-14/+26
| | | | This involves changing all our clients, that's why it's so large.
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* Make use of a large buffer for smbclient put commandVolker Lendecke2008-10-231-0/+3
|
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-181-3/+3
|
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-8/+8
|
* Fix the build farm. In this branch cli_echo returns NTSTATUS.Jeremy Allison2008-10-031-1/+4
| | | | Jeremy
* Correctly fix smbclient to terminate on eof from server.Jeremy Allison2008-10-031-2/+11
| | | | Jeremy.
* Fix display of POSIX ACLs.Timur2008-09-151-2/+2
|
* Use the given name, not the absolute pathname, when printing out ACL info.Jeremy Allison2008-09-111-1/+1
| | | | | | Make this match the non-ACL case. Jeremy. (This used to be commit e695c1cc2b715afd713595e8daa77910d9f04138)
* Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu ↵Jeremy Allison2008-09-111-1/+1
| | | | | | | | <fumiyas@osstech.co.jp>. Fix for smbclient and libsmbclient. Jeremy. (This used to be commit dbd5d6b145528527a614c6207d81a6c955e57461)
* Clarify usage of "force create mode".Jeremy Allison2008-08-281-1/+1
| | | | | Jeremy. (This used to be commit 1d252ffd313e0cd6fcb3d7cb2c99f2daf56728c1)
* Add async smbecho client supportVolker Lendecke2008-08-281-4/+6
| | | | (This used to be commit c1d645fbe39433541d8bfe6b818c855cee318dc5)
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-201-2/+3
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
* Fix a brown paper bag segfault in clitarVolker Lendecke2008-06-171-1/+1
| | | | | | | | Thanks to "No Body is Perfect" from gmail, whoever that is :-) Volker (cherry picked from commit 679d8dfa390601f777bfb43c02cd921eae5edcf4) (This used to be commit b8e1d62b8e8f724b855c8ab9801abee0b2791e36)
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-281-1/+1
| | | | | | can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-051-0/+5
| | | | | Guenther (This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-2/+2
| | | | (This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-1/+1
| | | | | This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
* Fix the problem when -L is used with IPv6 addresses. Don't try toJeremy Allison2008-04-171-0/+8
| | | | | | | connect on port 139 with IPv6. Found by David Holder @ Erion. Karolin please merge to 3.2-stable. Jeremy. (This used to be commit c003e66ff10b23bb30aef0071ba7a3ae9579174e)
* More ssize_t->SMB_OFF_TVolker Lendecke2008-03-281-1/+1
| | | | (This used to be commit 8dd6458049d1b9d6849730ac19c39b049a68f302)
* Coverity fixesMarc VanHeyningen2008-03-171-1/+4
| | | | (This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
* Fix Coverity ID 563Volker Lendecke2008-03-151-5/+1
| | | | | dirmask is always set here, we've dereferenced it before anyway (This used to be commit e6787aa133a1b241987319486c3bc46ac6ad41af)
* Use rpccli_srvsvc_NetShareEnumAll in smbclient.Günther Deschner2008-03-101-15/+21
| | | | | Guenther (This used to be commit 1121633652ffb77dce8df9cc91b7dfc2d55fd348)
* Eliminate global variable in_client and a plethora of extern declarations.Derrell Lipman2008-03-061-2/+1
| | | | | Derrell (This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
* Change default bufsize to 512kVolker Lendecke2008-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | I did not do any scientific tests, but the dummy test on my laptop against a w2k3 vmware shows that in this specific situation going beyond 512k seems not to gain anything anymore. smb: \> iosize 64512 iosize is now 64512 smb: \> lcd /dev smb: \> get random null getting file \random of size 104857600 as null (33453,1 kb/s) (average 19718,5 kb/s) smb: \> get random null getting file \random of size 104857600 as null (34236,0 kb/s) (average 20509,1 kb/s) smb: \> iosize 524288 iosize is now 524288 smb: \> get random null getting file \random of size 104857600 as null (49042,1 kb/s) (average 22521,9 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 23432,9 kb/s) smb: \> iosize 1048576 iosize is now 1048576 smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 24284,2 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49136,3 kb/s) (average 25076,9 kb/s) (This used to be commit 1bcfef6a9093aa873550a263dc142c8a3f5edffd)
* Use io_bufsize as window size in smbclient get commandVolker Lendecke2008-03-061-1/+1
| | | | (This used to be commit e602f06cbba852a7eacd15b2511ef2571a95cc80)
* Add async cli_pull supportVolker Lendecke2008-03-061-29/+16
| | | | | | | | | | | | | This is the big (and potentially controversial) one. It took a phone call to explain to metze what is going on inside cli_pull_read_done, but I would really like everybody to understand this function. It is a very good and reasonably complex example of async programming. If we want more asynchronism in s3, this is what we will have to deal with :-) Make use of it in the smbclient "get" command. Volker (This used to be commit 76f9b360ee1d973630d82d401eeddce858189301)
* Fix bug #5247 "Wildcard expansion in mget is broken"Jeremy Allison2008-02-081-71/+38
| | | | | | for 3.2. Jeremy. (This used to be commit 69aa0766203cb88b8b07e364f7148ade809f5ce6)
* Convert receive_smb_raw to NTSTATUSVolker Lendecke2008-02-021-3/+24
| | | | (This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
* strtok -> strtok_rVolker Lendecke2008-01-231-2/+3
| | | | (This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
* Fix error message for new allinfo command.Jeremy Allison2008-01-181-1/+1
| | | | | Jeremy. (This used to be commit 3a1bcbfa7ca2b55265eb486e2b7c740e04775698)
* Add the "allinfo" command to smbclientVolker Lendecke2008-01-181-0/+88
| | | | | Modeled after the Samba4 allinfo command (This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
* Correct comment. Default debug level of smbclient is 1, not 0.Karolin Seeger2008-01-091-1/+1
| | | | (This used to be commit 9c81125e6d3df49806e1c0b39409ffac8e3a0fd1)
* Use the common -e option not the custom one.Jeremy Allison2008-01-051-1/+1
| | | | | Jeremy. (This used to be commit ef1bbcdfb98da185c07005dd7810039f99f0685f)
* Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2008-01-041-2/+8
|\ | | | | | | | | | | v3-2-test (This used to be commit 3a45f62310faf63cd6864d2cb10f941492eda818)
| * Fix idle client reading keepalive.Jeremy Allison2008-01-041-1/+1
| | | | | | | | | | Jeremy. (This used to be commit 4ce0bf785635371e2923217b1e0b7f30986c25bb)
| * Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-2/+8
| | | | | | | | | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)