summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-04-27Fix the "allow_smb2" bug being set to false that was driving me mad :-).Jeremy Allison1-1/+5
The first packet from a rebooted Win7 on an SMB2 connection is an SMB1 negprot... Jeremy.
2010-04-27Don't return a potentially uninitialized NT_STATUS. We can now see user ↵Jeremy Allison1-1/+1
lists in Windows ACLs. Jeremy.
2010-04-27Add debug statements so I can track the flow of RPC data.Jeremy Allison1-2/+27
Jeremy.
2010-04-28s3-lanman: use spoolss for api_WPrintDestGetInfo() and api_WPrintDestEnum().Günther Deschner1-37/+115
With this, I think, all implemented RAP printing calls are routed over SPOOLSS. Torture tests to follow... Guenther
2010-04-28s3-lanman: fix debug message in api_WPrintJobEnumerate().Günther Deschner1-1/+1
Guenther
2010-04-28s3-lanman: remove a unnecessary memset in api_WPrintJobEnumerate().Günther Deschner1-1/+0
Guenther
2010-04-28s3-lanman: remove unused code.Günther Deschner1-134/+0
Guenther
2010-04-28s3-lanman: use spoolss for api_DosPrintQGetInfo and api_DosPrintQEnum.Günther Deschner1-152/+215
Guenther
2010-04-27Don't return an intermediate reply on async on a pipe call (Windows doesn't).Jeremy Allison1-0/+5
Jeremy.
2010-04-28s3-lanman: use spoolss for api_PrintJobInfo().Günther Deschner1-13/+88
Guenther
2010-04-28s3-lanman: remove unsupported print_job_set_place().Günther Deschner1-9/+0
Guenther
2010-04-27s3:smbd: keep local and remote tsocket_address per connectionStefan Metzmacher2-9/+65
metze
2010-04-26Correctly report share types (now Win7 makes RPC calls against us).Jeremy Allison1-1/+7
Jeremy.
2010-04-26Plumb in get_nt_acl into SMB2.Jeremy Allison2-46/+167
Jeremy.
2010-04-26s3: use generated rap header.Günther Deschner1-0/+1
Guenther
2010-04-26When walking the SMB2 requests queue, ensure the request is still "in flight"Jeremy Allison1-1/+10
before examining the details. SMB2 requests stay on the queue until their out.vector has been send, only then are they talloc_free'd. Thanks for Ira Cooper <ira@wakeful.net> for giving me the backtrace showing this. Jeremy.
2010-04-26Fix crash when rescheduling oplock open.Jeremy Allison1-0/+9
Jeremy.
2010-04-24s3: Simplify (bool != True) to !boolVolker Lendecke1-1/+1
2010-04-24Implement oplocks within SMB2. Plumb into the existing SMB1 oplock system.Jeremy Allison5-17/+112
Seems to work but needs more tests (to be added). Jeremy.
2010-04-23When sending the initial async response, this is never part of a chain.Jeremy Allison1-1/+1
Get the reply flags correct. Jeremy.
2010-04-23Don't free the entire tevent_req on cancel, only the part we need (the ↵Jeremy Allison1-9/+12
immediate event). Jeremy.
2010-04-23s3-smbd: group print relate data in own structureSimo Sorce5-8/+27
2010-04-23Allow smb2 create requests to be cancelled.Jeremy Allison4-20/+90
Jeremy.
2010-04-23Fix bug #7384 - dptr_Close has a bitmap leak.Ira Cooper1-3/+1
s3: Fix to dptr_Close This fixes a bitmap "leak" in dptr_Close by making it use the same internal routines the rest of the code does.
2010-04-23At simo's request return struct tevent_req *treq -> treq. For consistency :-(.Jeremy Allison1-80/+80
2010-04-23Rename - no functional change. Stop all variables being called "req".Jeremy Allison1-130/+129
tevent_req -> treq struct smb_request -> smb1req struct smbd_smb2_request -> smb2req Jeremy.
2010-04-23s3-lanman: fix uninitialized variable in api_RDosPrintJobDel().Günther Deschner1-1/+1
Guenther
2010-04-22Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.Jeremy Allison6-83/+355
Makes SMB2Create call re-entrant internally. Now this infrastructure is in place, oplocks will follow shortly. Tested with Win7 client and with W2K8R2. Jeremy.
2010-04-23s3: Fix a cut&paste error in a debug message in check_oem_password()Volker Lendecke1-1/+2
2010-04-19Now SMB2 error messages are correctly being returned with the 1 byte data ↵Jeremy Allison1-51/+49
area, smbd_smb2_request_error_ex() must call smbd_smb2_request_done_ex() in order to do the padding correctly on compound replies. Jeremy.
2010-04-19Ensure vectors are always allocated with consistent size. Removes one byte ↵Jeremy Allison1-20/+60
alloc on SMB2 error packet. Always use talloc_zero_array on out vectors - fixes valgrind errors in tevent writes. Jeremy.
2010-04-19Fix valgrind error where a strdup of name reads one byte beyond the end. ↵Jeremy Allison1-1/+2
Ensure buffer returned from inotify is null terminated. Jeremy.
2010-04-19Remove an unused auto variable.Jeremy Allison1-3/+0
Jeremy.
2010-04-19s3-smb2: fix some c++ warnings.Günther Deschner1-3/+3
Guenther
2010-04-19s3-lanman: use spoolss for api_WPrintJobGetInfo().Günther Deschner1-21/+54
Guenther
2010-04-19s3-lanman: use spoolss for api_WPrintJobEnumerate().Günther Deschner1-11/+142
Guenther
2010-04-18Final fix for #7331 - Compound async SMB 2 requests don't work right.Jeremy Allison2-4/+20
Don't free the cancelled SMB2 req early, let the cancelation function take care of it. Return a NT_STATUS_CANCELLED when we find and cancel a request. Fix our SMB2 error returns to correctly set the structuresize to 9, and add the expected zero byte (see section 2.2.2 in the SMB2 spec.). This causes Samba to pass the test program in this bug report that W2K8R2 fails (heh heh :-). This is because we always cause compound requests to get to a cancelation point before dealing with a cancel request. Jeremy.
2010-04-17Second part of fix for bug #7331 - Compound async SMB 2 requests don't work ↵Jeremy Allison1-58/+158
right. Cause us to match W2K8R2 by sending an interim compound reply followed by a async reply. Jeremy.
2010-04-17First part of fix for bug #7331 - Compound async SMB 2 requests don't work ↵Jeremy Allison5-105/+367
right. Gets us handling SMB2 compound async requests similar to W2K8R2 (and triggers the same client bug in the Win7 redirector). Great thanks to Ira Cooper <samba@ira.wakeful.net> for helping with this and to Metze for the wonderful async framework. The one thing I need to fix to make us identical to W2K8R2 is that when a compound request goes async at the end W2K8R2 splits the replies up into a compound non-async reply followed by a separate async reply. Currently we're doing the whole thing in a compound reply. Jeremy.
2010-04-17s3: Slightly simplify the logic of check_password_complexity()Volker Lendecke1-18/+22
The whole routine was just one if-branch. Do an early return instead.
2010-04-17s3: Fix some nonempty blank linesVolker Lendecke1-7/+7
2010-04-13s3: Cache the username map in gencacheVolker Lendecke1-0/+49
This is for uses with a heavy-weight username map script
2010-04-12Move to using 64-bit mid values in our internal open file database.Jeremy Allison10-123/+125
This will allow us to share logic much easier between SMB1 and SMB2 servers. Jeremy
2010-04-12s3: Little refactoring: Factor out skip_spaceVolker Lendecke1-5/+10
2010-04-12s3: Remove a bogus 0-check, "isspace" can not return true for \0Volker Lendecke1-1/+1
2010-04-12s3: Cache the result of the username map scriptVolker Lendecke1-0/+1
2010-04-09Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison10-72/+154
Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
2010-04-09s3: Use talloc_tos() as talloc ctx for fd_lines_load() in map_username()Volker Lendecke1-1/+1
2010-04-09s3: TALLOC_FREE(command) correctly in map_username()Volker Lendecke1-0/+2
2010-04-08Stop smb2 from calling into smb1 blocking lock request code.Jeremy Allison5-0/+66
Allocate a uint16_t internal SMB1 mid for an SMB2 request. Add a back pointer from the faked up smb_request struct to the smb2 request. Getting ready to add restart code for blocking locks, share mode violations and oplocks in SMB2. Jeremy.