summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clidfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug in smbclient not sending the correct called nameVolker Lendecke2009-04-151-1/+5
| | | | | | | | | | | | | | | Jeremy, I think the ability to say smbclient //foo/bar -I <ip-address> -p 139 making the called name to "foo" got lost with 3d2d0203. Was this removed deliberately? If so, please revert this patch. If not, please merge appropriately. Thanks, Volker (cherry picked from commit f13763ca4be49c08dfc533e39dd338b508ba4709)
* Allow DFS client paths to work when POSIX pathnames have beenJeremy Allison2009-04-151-2/+12
| | | | | | selected (we need to path in pathname /that/look/like/this). Jeremy. (cherry picked from commit 913d1f2af87fa449881a6fd2774a9dfdcb198fb4)
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-04-151-95/+48
| | | | | | | | | | 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-108/+54
| | | | | | | | 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.
* s3:libsmb: remove cli_setup_signing_state() and add struct cli_state ↵Stefan Metzmacher2009-03-061-2/+1
| | | | | | | | *cli_initialise_ex() This prepares the next changes. metze
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-4/+5
|
* Decouple clistr_pull from struct cli_state->inbufVolker Lendecke2009-01-261-3/+4
|
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-28/+28
| | | | | 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-11/+16
| | | | Jeremy.
* Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison2009-01-081-1/+2
| | | | Jeremy.
* Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison2009-01-021-15/+5
| | | | | | | from libsmb/clidfs.c. Keep the '-I<address>' option in smbclient working. The intent is to remove all globals from libsmb/clidfs.c. Jeremy.
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-2/+5
|
* Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2008-12-141-6/+7
| | | | This involves changing all our clients, that's why it's so large.
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-2/+2
| | | | Also eliminates name conflicts with OneFS system libraries
* cli_cm: Make nicer password prompt in do_connect().Günther Deschner2008-04-201-1/+6
| | | | | Guenther (This used to be commit cc967e76a39808e8311cc96c17078a0fce26c11a)
* Add some more cli_cm_set_X functions.Günther Deschner2008-04-101-1/+52
| | | | | Guenther (This used to be commit 882475f5566592b3a675d3609c3af8cf7d4e256d)
* Check the right pointer for non-NULLVolker Lendecke2008-03-061-1/+1
| | | | | Fix Coverity ID 558, 559 (This used to be commit 8e33d19d93ef57a9438aad085aaf04b7c09fe09b)
* Fix CID 461 - resource leak on error.Jeremy Allison2008-01-081-0/+4
| | | | | Jeremy. (This used to be commit eea07b0c83985af60395f8a31de5bac4e5398cff)
* Add general '-e' option to enable smb encryptionJeremy Allison2008-01-051-35/+23
| | | | | | on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
* Added -e, --encrypt option to smbclient that immediatelyJeremy Allison2007-12-291-11/+110
| | | | | | | forces encrypted smb after initial connect. Will document for 3.2 official release. Jeremy. (This used to be commit f02bf419282419950471deae74c4a6fe1543ed26)
* Fix C++ warningsVolker Lendecke2007-12-081-1/+1
| | | | (This used to be commit 01a5c3ea4bf18d99ca1c35e8c38367046e4c867b)
* Fix call to clistr_pull_talloc.Jeremy Allison2007-12-071-1/+1
| | | | | Jeremy. (This used to be commit 86700b7e2e79e634b41c272632e42b2e64f58ba3)
* Remove pstrings completely except for smbctool (what does this do ?).Jeremy Allison2007-12-071-37/+73
| | | | | | Don't build this for now. Jeremy. (This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
* Fix clidfs.c compile.Jeremy Allison2007-12-061-2/+3
| | | | | Jeremy. (This used to be commit 76034d1529a594837725cf599d97019eed7226b4)
* Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison2007-12-061-36/+24
| | | | | | Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
* Don't forget to delete the stackframe.Jeremy Allison2007-12-031-0/+1
| | | | | Jeremy. (This used to be commit 0551ee3402daebe5b96a66162d7702ca5a31da52)
* Remove PSTRING_LEN from smbd/ nmbd/.Jeremy Allison2007-11-291-217/+356
| | | | | | | | Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy. (This used to be commit cc257b71d13daa47e6f2315d0f07a60eb4aaeca6)
* Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison2007-11-291-3/+6
| | | | | | | Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-2/+6
| | | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
* Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison2007-10-271-2/+2
| | | | | | | | | zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy. (This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-10/+10
| | | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-11/+11
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-101-2/+2
| | | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.Jeremy Allison2007-10-101-2/+7
| | | | | | Long overdue fix.... Jeremy. (This used to be commit 073fdc5a58139796dbaa7ea9833dca5308f11282)
* r21800: Check-in the DFS rewrite. I am still testing this but itJeremy Allison2007-10-101-140/+148
| | | | | | | | | works from smbclient and Windows, and I am promising to support and fix both client and server code moving forward. Still need to test the RPC admin support but I haven't changed that code. Jeremy. (This used to be commit 7a7862c01d07796ef206b255c676ad7dc2cc42fc)
* r21768: Fix the client dfs code such that smbclient canJeremy Allison2007-10-101-17/+54
| | | | | | | | | | process deep dfs links (ie. links that go to non root parts of a share). Make the directory handling conanonical in POSIX and Windows pathname processing. dfs should not be fully working in client tools. Please bug me if not. Jeremy. (This used to be commit 1c9e10569cd97ee41de39f9f012bea4e4c932b5d)
* r21133: - Apply patch from ages ago, which should allow following ↵Derrell Lipman2007-10-101-10/+27
| | | | | | | | | \\server\share\path DFS referrals. This doesn't appear to break anything in the non-DFS case, but I don't have an environment to test DFS referrals. Need confirmation from OP that this solves the problem. (This used to be commit e479a9c094fa42354aad7aa76a712bf67d3d4d45)
* r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke2007-10-101-5/+6
| | | | | Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
* r17291: Fix memory leaks on early exit path.Jeremy Allison2007-10-101-1/+5
| | | | | Jeremy. (This used to be commit deaac5bd463e5b8fd0b9915b553fdac3a4271293)
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-2/+3
| | | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
* r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke2007-10-101-3/+6
| | | | | | | | | | | | | | | | | in net_rpc.c: 715 716 732 734 735 736 737 738 739 749 in net_rpc_audit.c: 754 755 756 in net_rpc_join.c: 757 in net_rpc_registry: 766 767 in net_rpc_samsync.c: 771 773 in net_sam.c: 797 798 Volker (This used to be commit 3df0bf7d6050fd7c9ace72487d4f74d92e30a584)
* r16249: Fix Klokwork ID 130Volker Lendecke2007-10-101-1/+1
| | | | (This used to be commit 09586824f6568fb3305e3e59ba6bc8f5f632fb56)
* r14133: Fix Coverity bug # 140Volker Lendecke2007-10-101-2/+2
| | | | (This used to be commit 5007f53eb54eddff3d13df929d78385d6b158057)
* r13316: Let the carnage begin....Gerald Carter2007-10-101-6/+16
| | | | | Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
* r9958: revert last commit.Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit 351c783295672a327b6040537bd09d91dd210e53)
* r9955: Fix misleading comments.Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit 0c3b7499d4bf11805a9fc5db88eb62dd003481af)
* r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter2007-10-101-2/+0
| | | | (This used to be commit 985dbb47d925e79c1195ca219f7ab5d6648b22b8)
* r7339: only check for dfs proxy referrals when the server supports dfsGerald Carter2007-10-101-1/+1
| | | | (This used to be commit 9e93244fa5bd06b142a980d4090fa8f95afc983a)