summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-05-18s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".Günther Deschner2-19/+20
Guenther
2010-05-18s3-secdesc: remove "typedef struct security_acl SEC_ACL".Günther Deschner1-2/+2
Guenther
2010-05-18s3-secdesc: remove "typedef struct security_ace SEC_ACE".Günther Deschner1-14/+14
Guenther
2010-05-18s3-build: fix the build.Günther Deschner1-1/+1
Guenther
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij5-20/+13
2010-05-17Plumb in krb5 to the SMB2 sessionsetup code. First cut of this code.Jeremy Allison2-11/+404
Jeremy.
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2010-05-18s3-crypto: only include crypto headers when crypto is done.Günther Deschner1-0/+1
Guenther
2010-05-17Refactor the sessionsetup SMB2 code to make it easy to addJeremy Allison1-140/+293
krb5. Fix a memory leak in returning security blobs. Jeremy
2010-05-13Fix bug 7399 - SMB2: QUERY_DIRECTORY is returning invalid values.Jeremy Allison2-1/+15
The end_data argument to smbd_dirptr_lanman2_entry() must include the safety margin, as internally it's actually used to allow detection of string name pushes that were truncated. Ensure space_remaining can never go negative due to padding. Jeremy.
2010-05-13Be more forgiving on client oplock break failure (as Windows does). Remove a ↵Jeremy Allison5-8/+1
global. Jeremy.
2010-05-13Treat an open of stream ::$DATA as an open of the base file.Jeremy Allison1-1/+23
This fixes a class of SMB_ASSERT failures when doing stream tests. Jeremy.
2010-05-13s3:smbd Remove calls to namecache_enable()Andrew Bartlett1-2/+0
This only prints a DEBUG() Andrew Bartlett
2010-05-12Pass more SMB2 oplock tests. Only oplock stream tests left to fix.Jeremy Allison2-1/+10
Jeremy.
2010-05-12s3-lanman: use samr for api_SamOEMChangePassword().Günther Deschner1-9/+49
Guenther
2010-05-11Fix more SMB2-OPLOCK bugs. Only 3 more issues to address then we're good to ↵Jeremy Allison2-2/+15
go on this test. Jeremy.
2010-05-11s3:kerberos Return PAC_LOGON_INFO rather than the full PAC_DATAAndrew Bartlett1-7/+3
All the callers just want the PAC_LOGON_INFO, so search for that in ads_verify_ticket(), and don't bother the callers with the rest of the PAC. This change makes sense on it's own (removing boilerplate wrappers that just confuse the code), but it also makes it much easier to implement a matching ads_verify_ticket() function in Samba4 for the s3compat proposal. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-10SMB2 always have level2 oplock capability. Correct mapping from break ↵Jeremy Allison4-3/+6
messages to SMB2 oplock levels. Jeremy.
2010-05-10Stop us crashing in SMB2-OPLOCK test. Don't allow more than one outstanding ↵Jeremy Allison1-5/+33
immediate event. Jeremy.
2010-05-10Fix the processing of unlocks followed by locks. We now pass SMB2-LOCK test.Jeremy Allison1-9/+5
Jeremy.
2010-05-10Fix more of the SMB2-LOCK tests. Correctly unlock locks on error.Jeremy Allison1-3/+19
Jeremy.
2010-05-09s3-lanman: use srvsvc for api_RNetServerGetInfo().Günther Deschner1-45/+47
Following MS-RAP 3.2.5.3 NetServerGetInfo Command. Guenther
2010-05-09s3-spoolss: Make spoolss_Time_to_time_t public.Simo Sorce1-15/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-07Only MULTIPLE-UNLOCK test left to fix !Jeremy Allison3-3/+3
Jeremy.
2010-05-07When tearing down the connection make sure we close all files beforeJeremy Allison2-0/+8
freeing the global context, as we close access to the locking db before freeing the global context. Jeremy.
2010-05-07This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> ↵Jeremy Allison6-89/+89
smblctx in our locking code. 2). Widens smblctx to 64-bits internally. Preparing to use the SMB2 handle as the locking context. Jeremy.
2010-05-07Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them ↵Jeremy Allison5-6/+25
next :-). Jeremy.
2010-05-07Fix crash in cancel-tdis lock test. Correctly shut down connection.Jeremy Allison1-1/+1
Jeremy.
2010-05-06Fix cancel by close lock test.Jeremy Allison1-24/+36
Jeremy.
2010-05-06Fix more SMB2 locking. We still crash but this won't last :-).Jeremy Allison3-49/+99
Jeremy.
2010-05-05Move to MS-FSA algorithm when checking for invalid lock range.Jeremy Allison1-7/+0
Satisfies SMB and SMB2. Jeremy.
2010-05-06s3: only include gen_ndr headers where needed.Günther Deschner14-0/+14
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
2010-05-05Get closer to passing SMB2 lock test. Still crashes but we get further.Jeremy Allison1-24/+32
More work to follow later. Jeremy.
2010-05-05Return correct error on read request on directory.Jeremy Allison1-0/+4
Jeremy.
2010-05-05Get in_minimum and EOF errors right.Jeremy Allison1-1/+11
Jeremy.
2010-05-05Client ignoring max write is a warning, not an error.Jeremy Allison1-1/+5
Jeremy.
2010-05-05Start to pass the SMB2 read torture tests.Jeremy Allison1-1/+1
Jeremy.
2010-05-05s3-lanman: use srvsvc for api_RNetShareAdd().Günther Deschner1-34/+42
Guenther
2010-05-05Fixed issue with return in a void function found by Björn JACKE <bj@SerNet.DE>Jeremy Allison1-1/+2
Jeremy.
2010-05-03s3-lanman: before trying to call spoolss_ClosePrinter make sure we have a ↵Günther Deschner1-8/+8
connection. Guenther
2010-05-03s3-lanman: fix api_DosPrintQEnum().Günther Deschner1-1/+7
This was a subtile bug where the OpenPrinter call (called directly via dispatcher table) was modifiying r->in.printername in a way that all printers on a server had the printername stripped off the server unc. Once we switch to full NDR marshalling in inter RAP<->RPC server communication there is no danger anymore to have these kind of nasty effects. Guenther
2010-05-03s3-lanman: exit early for unsupported levels in api_PrintJobInfo().Günther Deschner1-17/+17
Guenther
2010-04-30Plumb the SMB2 front end into the blocking lock backend.Jeremy Allison3-30/+477
Metze, you'll probably be happier with this work as it doesn't abuse tevent in the way you dislike. This is a first cut at the code, which will need lots of testing but I'm hoping this will give people an idea of where I'm going with this. Jeremy.
2010-04-30smbd: move printfile_offset() within write_file()Simo Sorce2-12/+7
2010-04-29Carefully label SMB1-specific locking calls.Jeremy Allison6-8/+24
Jeremy.
2010-04-29Move the global blocking lock records into the smb1 state.Jeremy Allison3-45/+42
Jeremy
2010-04-29Attempt to fix bug #7399 - SMB2: QUERY_DIRECTORY is returning invalid values.Jeremy Allison2-10/+39
Based on an initial patch from Ira Cooper <samba@ira.wakeful.net>. Jeremy.
2010-04-29s3-lanman: fix api_DosPrintQGetInfo().Günther Deschner1-4/+28
Found by torture test. Guenther
2010-04-29s3-lanman: fix api_DosPrintQEnum.Günther Deschner1-10/+22
Found by torture test. Guenther
2010-04-28Update (C) for 2010.Jeremy Allison7-1/+8
Jeremy.