1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

400 Commits

Author SHA1 Message Date
Günther Deschner
d077ef64cd Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
2008-05-05 16:59:53 +02:00
Volker Lendecke
99fc3283c4 Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct 2008-04-20 14:08:16 +02:00
Volker Lendecke
783afab9c8 Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
2008-04-20 00:13:09 +02:00
Jeremy Allison
c003e66ff1 Fix the problem when -L is used with IPv6 addresses. Don't try to
connect on port 139 with IPv6. Found by David Holder @ Erion.
Karolin please merge to 3.2-stable.
Jeremy.
2008-04-17 09:24:54 -07:00
Volker Lendecke
8dd6458049 More ssize_t->SMB_OFF_T 2008-03-28 15:32:02 +01:00
Marc VanHeyningen
3fc85d2259 Coverity fixes 2008-03-17 20:52:25 +01:00
Volker Lendecke
e6787aa133 Fix Coverity ID 563
dirmask is always set here, we've dereferenced it before anyway
2008-03-15 22:30:25 +01:00
Günther Deschner
1121633652 Use rpccli_srvsvc_NetShareEnumAll in smbclient.
Guenther
2008-03-10 04:33:06 +01:00
Derrell Lipman
b7f34e7ef2 Eliminate global variable in_client and a plethora of extern declarations.
Derrell
2008-03-06 10:41:42 -05:00
Volker Lendecke
1bcfef6a90 Change default bufsize to 512k
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)
2008-03-06 13:28:23 +01:00
Volker Lendecke
e602f06cbb Use io_bufsize as window size in smbclient get command 2008-03-06 13:28:23 +01:00
Volker Lendecke
76f9b360ee Add async cli_pull support
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
2008-03-06 13:28:23 +01:00
Jeremy Allison
69aa076620 Fix bug #5247 "Wildcard expansion in mget is broken"
for 3.2.
Jeremy.
2008-02-08 16:59:52 -08:00
Volker Lendecke
ba771bd858 Convert receive_smb_raw to NTSTATUS 2008-02-02 11:03:23 +01:00
Volker Lendecke
fd34ce4370 strtok -> strtok_r 2008-01-23 15:08:04 +01:00
Jeremy Allison
3a1bcbfa7c Fix error message for new allinfo command.
Jeremy.
2008-01-18 13:47:10 -08:00
Volker Lendecke
3fa0cf3fe5 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
2008-01-18 11:08:17 +01:00
Karolin Seeger
9c81125e6d Correct comment. Default debug level of smbclient is 1, not 0. 2008-01-09 12:21:44 +01:00
Jeremy Allison
ef1bbcdfb9 Use the common -e option not the custom one.
Jeremy.
2008-01-05 00:46:04 -08:00
Jeremy Allison
3a45f62310 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2008-01-04 19:06:37 -08:00
Jeremy Allison
4ce0bf7856 Fix idle client reading keepalive.
Jeremy.
2008-01-04 14:56:56 -08:00
Jeremy Allison
c4e5a50504 Refactor the crypto code after a very helpful conversation
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
2008-01-04 12:56:23 -08:00
Jeremy Allison
656c9d0844 We may use 127k read/write for encrypted connections.
Jeremy.
2007-12-30 18:05:33 -08:00
Jeremy Allison
a0494b115b Fix error message.
Jeremy.
2007-12-29 22:42:20 -08:00
Jeremy Allison
f02bf41928 Added -e, --encrypt option to smbclient that immediately
forces encrypted smb after initial connect. Will document
for 3.2 official release.
Jeremy.
2007-12-29 22:39:52 -08:00
Jeremy Allison
d241bfa577 Add the capability to set "smb encrypt = required"
on a share (or global) and have the server reply with
ACCESS_DENIED for all non-encrypted traffic (except
that used to query encryption requirements and set
encryption state).
Jeremy.
2007-12-27 23:51:03 -08:00
Jeremy Allison
d78045601a Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
2007-12-26 17:12:36 -08:00
Volker Lendecke
86d9412611 Remove next_token_nr_talloc and its associated global
Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
2007-12-21 09:58:20 +01:00
Rishi Srivatsavai
db74b99d0e Add smbclient support for basic mDNS browsing.
Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
2007-12-17 22:09:09 -08:00
Karolin Seeger
81dab4145f Revert smbclient changes.
Patch broke option -p.
Sorry for breaking the build!

Karolin
2007-12-14 12:08:30 +01:00
Karolin Seeger
04131b26de Make smbclient to display error message and usage in the case of invalid options. 2007-12-14 11:20:27 +01:00
Jeremy Allison
52dc5eaef2 Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
James Peach
ffee51586c Move load_case_tables() to after logging is set up. This can log
errors.
2007-12-09 13:22:19 -08:00
Volker Lendecke
01a5c3ea4b Fix C++ warnings 2007-12-08 09:39:36 -08:00
Jeremy Allison
efaebdb141 More null deref fixes.
Jeremy.
2007-12-07 14:43:31 -08:00
Jeremy Allison
78c98796d9 More null deref fixes.
Jeremy
2007-12-07 14:37:00 -08:00
Jeremy Allison
686e4e5efe Don't deref null pointers.
Jeremy.
2007-12-07 14:35:04 -08:00
Jeremy Allison
252ef28bb8 Add popt to binaries in makefile. Hack clitar to compile until I fix it.
Jeremy.
2007-12-06 18:08:01 -08:00
Jeremy Allison
c87f3eba9a Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
2007-12-06 17:16:33 -08:00
Andreas Schneider
a9b686bfdc Remove trailing slashes from service name 2007-12-06 12:40:55 +01:00
Jeremy Allison
cc257b71d1 Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
2007-11-29 17:25:41 -08:00
Jeremy Allison
1ea3ac8014 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
2007-11-15 14:19:52 -08:00
Jeremy Allison
255c2adf7b Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
2007-11-05 11:12:56 -08:00
Jeremy Allison
81ca5853b2 Change the client library to write directly out of
the incoming buffer in the non-signed case. Speeds
up writes by over 10% or so. Complete the server
recvfile implementation.
Jeremy.
2007-11-02 12:21:34 -07:00
Jeremy Allison
52f13d8495 Add printout of large read/write caps if detected.
Jeremy.
2007-10-31 14:12:50 -07:00
Jeremy Allison
2e92418a13 Change all occurrences of zero_addr(&ss,AF_INET) to
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.
2007-10-27 20:29:36 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
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.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
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.
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00