summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2011-06-19s3: Fix some type-punned warningsVolker Lendecke1-7/+8
2011-06-19s3: Add name_resolve_bcast_send/recvVolker Lendecke1-20/+97
2011-06-19s3: Fix a memleak in name_resolve_bcastVolker Lendecke1-4/+7
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
2011-06-19s3: Add incomplete cli_nttrans_createVolker Lendecke2-0/+208
secdesc only at this moment
2011-06-19s3: Correctly align evenVolker Lendecke1-1/+3
2011-06-17s3-util: remove the s3 nterr.cAndrew Tridgell1-57/+0
this is now in common code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-17libclu/util: Move get_friendly_nt_error_msg() in common.Andrew Bartlett1-20/+0
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-12s3: Use resolve_wins_send/recv in resolve_winsVolker Lendecke1-110/+15
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
2011-06-12s3: Add resolve_wins_send/recvVolker Lendecke1-0/+177
2011-06-12s3: Add query_wins_list_send/recvVolker Lendecke1-0/+144
2011-06-12s3: Fix IO_TIMEOUT handling for wins queriesVolker Lendecke1-3/+12
2011-06-12s3: Remove "struct ip_service" from resolve_winsVolker Lendecke1-9/+13
2011-06-10s3:libsmb: remove unused cli_state_seqnum infrastructureStefan Metzmacher2-36/+0
metze Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jun 10 20:37:54 CEST 2011 on sn-devel-104
2011-06-10s3:libsmb/clireadwrite: calculate cli_write_max_bufsize() correct based on ↵Stefan Metzmacher1-8/+12
max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
2011-06-10s3:libsmb/clireadwrite: calculate cli_read_max_bufsize() correct based on ↵Stefan Metzmacher1-1/+12
max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
2011-06-10s3:libsmb/clitrans: correctly transfer the seqnum between secondary and ↵Stefan Metzmacher1-3/+8
primary requests This is needed to implement SMB signing correct. metze
2011-06-10s3:libsmb/clitrans: fix handling of multi pdu [nt]trans[s][2] callsStefan Metzmacher1-8/+80
We now keep the primary request open for the whole logical request. The primary request is the one that gets all incoming replies. While secondary requests are handled as separate one-way requests. metze
2011-06-10s3:libsmb/clitrans: use subreq2 as variable for the secondary requestsStefan Metzmacher1-7/+9
metze
2011-06-10s3:libsmb/clitrans: move MID handling to the end of cli_trans_send() and add ↵Stefan Metzmacher1-2/+11
a comment metze
2011-06-10s3:libsmb/clitrans: correctly marshall [nt]trans[s][2] requestsStefan Metzmacher1-12/+41
We need to align params and data to 4 byte offsets. This also correctly recalculates the useable space after each step. metze
2011-06-10s3:libsmb/clitrans: marshall SMBnttrans[2] as the othersStefan Metzmacher1-23/+23
This is just to make the code more readable and easier to notice how many words we're using in vwv. metze
2011-06-10s3:libsmb/clitrans: use uint32_t for param and data variablesStefan Metzmacher1-3/+3
SMBnttrans uses 32-bit values there. metze
2011-06-10s3:libsmb/clitrans: remove unused secondary_request_ctxStefan Metzmacher1-2/+0
metze
2011-06-10s3:libsmb/async_smb: add helpers to get and set the seqnum for signingStefan Metzmacher1-0/+14
This will be used for correct signing in [nt]trans[2][s] requests. metze
2011-06-10s3:libsmb/async_smb: don't remove pending requests if the mid is setStefan Metzmacher1-0/+15
If the mid was set explicitly, it means the request expects more than one reply, so leave it in the pending array. metze
2011-06-10s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor ↵Stefan Metzmacher1-2/+2
directly metze
2011-06-10s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way ↵Stefan Metzmacher1-0/+18
requests metze
2011-06-10source3/libsmb/proto.h: fix licence/copyrightGünther Deschner1-0/+8
Guenther
2011-06-10source3/libsmb/nmblib.h: fix licence/copyrightGünther Deschner1-0/+27
Guenther
2011-06-10source3/libsmb/libsmb.h: fix licence/copyrightGünther Deschner1-0/+5
Guenther
2011-06-10source3/libsmb/errormap_wbc.h: fix licence/copyrightGünther Deschner1-0/+26
Guenther
2011-06-10source3/libsmb/clidgram.h: fix licence/copyrightGünther Deschner1-0/+26
Guenther
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett8-12/+12
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 global_scope()Andrew Bartlett1-5/+5
There is no reason this can't be a normal constant string in the loadparm system. (Past reasons were that we didn't have lp_set_cmdline()) Andrew Bartlett
2011-06-09s3-libsmbclient Use workgroup from libsmbclient caller for domain in credentialsAndrew Bartlett1-1/+1
This previously set the workgroup, which is a different thing, but would have been the default if no domain was specified). This more clearly sets the information from the credentials file into the matching field in the credentials structure. Andrew Bartlett
2011-06-09s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett1-2/+2
Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett4-7/+7
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett6-14/+14
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett3-3/+3
Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett7-10/+10
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett5-13/+13
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-06-08s3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZEStefan Metzmacher1-6/+6
This isn't the fixed buffer size anymore, as we use dynamic beffer it's just the maximum size. metze
2011-06-08s3:libsmb:cli_np_tstream: use dynamic talloc buffersStefan Metzmacher1-9/+30
Having 8192 bytes on an idle connection is a bit to much, so we better use dynamic buffers using talloc, which also avoids a memcpy in the common SMBtrans readv codepath. metze
2011-06-07s3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug ↵Stefan Metzmacher1-2/+17
#8195) NT4 servers return NT_STATUS_PIPE_BUSY if we try a SMBtrans and the SMBwriteX before hasn't transmited the whole DCERPC fragment. W2K and above is happy with that. As a result we try to match the behavior of Windows and older Samba clients, they use write and read buffers of 4280 bytes instead of 1024 bytes. On Windows only the SMBtrans based read uses 1024 (while we also use 4280 there). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 7 20:25:32 CEST 2011 on sn-devel-104
2011-06-07s3: Remove unused variablesVolker Lendecke1-2/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 7 00:42:51 CEST 2011 on sn-devel-104
2011-06-06s3: Remove a pointless if-statementVolker Lendecke1-3/+1
We are here only if we have more than one num_pending Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 6 18:21:17 CEST 2011 on sn-devel-104
2011-06-05s3: Make name_resolve_bcast do parallel lookups to all interfacesVolker Lendecke1-21/+19
2011-06-05s3: Add name_queries_send/recvVolker Lendecke1-0/+231
2011-06-01lib/util/time.c: timeval_current_ofs_msecRusty Russell1-2/+1
Several places want "milliseconds from current time", and several were simply doing "msec * 1000" which can (and does in one place) result in a usec value over 1 a million. Using a helper to do this is safer and more readable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-31s3-libsmb remove ldap_err2string() as common nterrs[] has the constantsAndrew Bartlett1-6/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue May 31 08:58:00 CEST 2011 on sn-devel-104