summaryrefslogtreecommitdiffstats
path: root/source4/libcli/smb2
Commit message (Collapse)AuthorAgeFilesLines
* s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2009-10-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-1/+1
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* libcli/smb: move smb2_create_blob code to libcli/smb/Stefan Metzmacher2009-08-121-157/+0
| | | | | | I want to use this in source3/smbd/ metze
* libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher2009-08-122-176/+0
| | | | | | This will hold code that's shared between source3 and source4. metze
* s4:libcli/smb2: move SMB2_GETINFO_* flags into smb2_constants.hStefan Metzmacher2009-08-072-6/+6
| | | | metze
* s4:libcli/smb2: remove unused and redundant SMB2 security flagsStefan Metzmacher2009-08-071-6/+0
| | | | metze
* s4:libcli: move SMB2 Find constants to smb2_constants.hStefan Metzmacher2009-08-071-0/+16
| | | | metze
* handle large directories in smb2_deltree()Andrew Tridgell2009-08-051-36/+42
|
* s4:libcli/smb2: add smb2_transport_credits_set_charge() to change the ↵Stefan Metzmacher2009-07-153-4/+14
| | | | | | CreditsCharge value for the next request metze
* s4:libcli: move SMB2 lock flags to smb2_constants.hStefan Metzmacher2009-07-021-0/+8
| | | | metze
* s4:libcli/smb2: add smb2_transport_credits_ask_num()Stefan Metzmacher2009-06-093-2/+13
| | | | metze
* s4:libcli/smb2: only add the 1 byte dynamic buffer padding for non ↵Stefan Metzmacher2009-06-091-2/+6
| | | | | | compounded requests metze
* s4:libcli/smb2: add support sending compounded requestsStefan Metzmacher2009-06-093-50/+205
| | | | metze
* s4:libcli/smb2: prepare SMB2 signing code for compounded requestsStefan Metzmacher2009-06-091-2/+8
| | | | metze
* s4:libcli/smb2: remove old dialect revision constantsStefan Metzmacher2009-05-261-4/+0
| | | | metze
* s4:libcli/smb2: use new SMB2_DIVELECT_REVISION constantsStefan Metzmacher2009-05-261-2/+5
| | | | | | | Also send them in the order a windows client would send them (the lowest first). metze
* s4:libcli/smb2: add some more SMB2 constantsStefan Metzmacher2009-05-261-4/+14
| | | | metze
* s4:libcli/smb2: fix session setup with raw NTLMSSPStefan Metzmacher2009-05-201-13/+17
| | | | metze
* s4:libcli/smb2: use raw ntlmssp if the server didn't provide a sec blobStefan Metzmacher2009-05-201-1/+8
| | | | metze
* s4:libcli/smb2: fill in transport->negotiate.secblob with the correct dataStefan Metzmacher2009-05-201-0/+2
| | | | metze
* Move SMB2 constants to a separate fileVolker Lendecke2009-05-112-114/+140
|
* Fix SMB2_CAP_DFSVolker Lendecke2009-05-111-1/+1
|
* s4:smb2: Add lease break support for SMB2.1Zach Loafman2009-04-015-11/+145
| | | | | Add the structures and marshalling for the lease break variants of the oplock break / oplock break ack messages.
* s4:smb2: Add rudimentary SMB2.1 lease support to libcliZach Loafman2009-03-282-0/+38
| | | | Add the structures, constants, and marshalling for SMB2.1 leases.
* s4 libcli: Add back Longhorn beta dialect as a constantZach Loafman2009-03-182-4/+4
| | | | Also tweak how the dialect array and count is initialized.
* s4 libcli: Add SMB2.1 dialect to libcliZach Loafman2009-03-172-2/+5
| | | | | Negotiate 2.1 if possible, leave negotiate results in transport->negotiate.dialect_revision.
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-011-9/+9
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-011-2/+2
| | | | consistency with Samba 3.
* s4:libcli/smb2: fix c++ warningStefan Metzmacher2009-02-051-1/+1
| | | | metze
* s4:smb2: s/private/private_dataStefan Metzmacher2009-02-022-3/+3
| | | | metze
* s4:libcli/smb2: s/class/info_classStefan Metzmacher2009-02-021-5/+6
| | | | metze
* s4:libcli/smb2: s/private/private_dataStefan Metzmacher2009-02-021-13/+13
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-293-8/+8
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij2008-11-021-5/+9
|
* Fix the build.Jelmer Vernooij2008-11-021-2/+0
|
* Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2008-11-023-4/+5
| | | | should in the future only contain some settings required for gensec.
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-4/+7
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-7/+7
|
* Move calls to lp_* higher up in the call stack.Jelmer Vernooij2008-11-011-6/+15
|
* Move lp_*() calls a bit higher up the calls tack.Jelmer Vernooij2008-11-011-2/+1
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-241-2/+2
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-112-2/+2
|
* s4:libcli/smb2: remove unused headerStefan Metzmacher2008-09-291-1/+0
| | | | | | This hopefully fixes the build with internal popt. metze
* we need different error handling for truncated packets in NETPROT andAndrew Tridgell2008-09-241-0/+1
| | | | other SMB2 operations.
* for use in python we need to use global_loadparmAndrew Tridgell2008-09-241-1/+1
|
* - SMB2 uses INVALID_PARAMETER not BUFFER_TOO_SMALL for buffer sizeAndrew Tridgell2008-09-241-15/+39
| | | | | | errors - added a s32o16 buffer function
* - use the current dialect first, for servers that only look at theAndrew Tridgell2008-09-241-3/+10
| | | | | | first dialect - allow override of SMB2 port in client code
* be friendlier in smb2_deltree to some of the SMB2 implementations thatAndrew Tridgell2008-09-241-1/+1
| | | | don't handle SEC_FLAG_MAXIMUM_ALLOWED
* Move source4/lib/crypto to lib/crypto.Jelmer Vernooij2008-09-241-1/+1
|