summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-05s4:torture:smb2: add smb2_lease_v2_create() wrapper to ↵Michael Adam1-0/+16
smb2_lease_v2_create_share() that sets share all. similar to smb2_lease_create() Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-10-05s4:torture:smb2: add smbcli_options argument to torture_smb2_connection_ext()Michael Adam1-5/+6
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-08-23libsmb2: Fix opening the rootdirectory, part 2Volker Lendecke1-1/+1
smb2_push_o16s16_blob is wrong for the blob.data==NULL case. It does not do the same magic that the rest of the routine does with regards to padding_fix. padding_fix is wrong in its own respect, with a 0-length blob we end up with a negative padding fix. It's wrong, but it seems to work. Why am I doing this? I want to make smb2.getinfo work against w2k12. smb2_util_roothandle() always gives NT_STATUS_INVALID_PARAMETER without this and the preceding fix. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-27torture: Use ZERO_STRUCTPN instead of explicit derefVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org>
2013-04-18s4:torture/smb2: add smb2_lease_v2_create_share() helperStefan Metzmacher1-0/+28
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2013-04-18s4:torture/smb2: add NTCREATEX_SHARE_ACCESS_DELETE in ↵Stefan Metzmacher1-1/+0
smb2_generic_create_share() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2012-07-25libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()Stefan Metzmacher1-0/+1
metze
2012-07-25s4:libcli/smb2: remove unused elements from smb2_treeStefan Metzmacher1-3/+0
metze
2012-07-24s4:libcli/smb2: setup a smbXcli_tcon for each smb2_treeStefan Metzmacher1-0/+8
metze
2012-03-03s4:libcli:smb2: store the share capabilites in the smb2_tree objectMichael Adam1-0/+1
2012-02-28s4:torture:smb2: add torture_smb2_connection_ext() that takes previous_sessionMichael Adam1-13/+25
2012-02-28s4:torture:smb2: add previous_session argument to torture_smb2_session_setup()Michael Adam1-1/+2
To allow for doing a session reconnect
2012-02-28s4:libcli:smb2: add a previous session argument to smb2_session_setup_spnego()Michael Adam1-1/+2
So that we can do a session reconnect.
2012-02-27torture: don't check the NOINDEXED bit in attribute comparisonAndrew Tridgell1-1/+1
this bit is dependent on user settings on the filesystem Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2012-02-03s4:torture: add a torture_smb2_session_setup() utility functionMichael Adam1-0/+31
2012-02-03s4:torture: add torture_smb2_tree_connect() utility functionMichael Adam1-0/+42
This does a tcon based on an existing session, using the name an host present in the torture context.
2011-11-09s4:torture:smb2: add smb2_oplock_create_share() that takes sharemode as ↵Michael Adam1-2/+8
parameter
2011-11-09s4:torture:smb2: add smb2_lease_create_share() that takes a sharemode as ↵Michael Adam1-2/+12
parameter
2011-11-09s4:torture:smb2: add smb2_generic_create_share() that also takes the ↵Michael Adam1-7/+17
sharemode as parameter
2011-11-09s4:torture:smb2: move the smb2_create_*() utility functions from lease.c to ↵Michael Adam1-0/+57
util.c for re-use
2011-11-09s4:torture:smb2: lease: oplock_level is uint8_t, not uint32_t or intMichael Adam1-2/+2
2011-11-09s4:torture:smb2: move oplock() from lease.c to smb2_util_oplock_level() in ↵Michael Adam1-0/+21
util.c for re-use
2011-11-09s4:torture:smb2: extract map_sharemode() to smb2_util_share_access() in util.cMichael Adam1-0/+23
2011-11-09s4:torture:smb2: extract map_lease() to util.c as smb2_util_lease_state().Michael Adam1-0/+22
2011-10-26s4:torture:smb2: fix broken indentation/formatting in torture_smb2_connection()Michael Adam1-8/+11
this was not readable well
2011-09-29s4-torture: remove unchecked read from smb2 createDavid Disseldorp1-9/+0
Add a corresponding test case to smb2.read. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-03-19source4/torture: Fix prototypes for all functions.Jelmer Vernooij1-0/+1
2010-09-22s4:libcli:smb2 Rename pending_id to async_id and make 64-bitSteven Danneman1-0/+1
Match MS-SMB2 - 2.2.1.1 SMB2 Packet Header - ASYNC
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-5/+5
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-07s4 torture: Port RAW-ACLS tests to SMB2Zack Kirsch1-40/+37
- The smblsa calls had to be commented out for now and should be fixed later, but they aren't crucial to the test. - The first two tests from RAW-ACLS were already ported to torture_smb2_setinfo() and test_create_acl(). Modifications were made similar to the RAW-ACLS changes. - test_sd_get_set() was ported, but does not pass against XP or Vista; it is not added to the SMB2-ACLS test suite. - printf -> torture_comment / torture_warning / torture_result
2009-12-07s4 torure: Add SMB2 utility functionsZack Kirsch1-2/+105
- Add a torture_setup_dir() equivalent in SMB2, called smb2_util_setup_dir(). - Add verify_sd() and verify_attrib() helper functions for SMB2.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-3/+0
This reduces compile time somewhat.
2008-11-02Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij1-1/+2
2008-11-02Fix the build.Jelmer Vernooij1-1/+3
2008-11-01Remove another use of global_loadparm.Jelmer Vernooij1-1/+3
2008-05-30implemented client side SMB2 signingAndrew Tridgell1-1/+4
This doessn't work against Windows yet, and I've submitted a WSPP request for clarification of the docs to try and find out why. Meanwhile this is no worse than what we had, as it only gets used when the server demands signing, and we didn't work then anyway. (This used to be commit b788096add3586d7277efcd3bf5ca7f3a604cb7a)
2008-05-20moved these util functions into libcliAndrew Tridgell1-26/+0
(This used to be commit b2f1154bc338fb56fc998f40159156cb6859075b)
2008-05-19added mkdir to SMB2 proxyAndrew Tridgell1-19/+5
(This used to be commit 1323aab11fbf346e19c4cef227d727ddfcaa7d60)
2008-04-16Avoid event_find_context when a event context is already available.Jelmer Vernooij1-1/+1
(This used to be commit 4ca264679ecfd938c538a93f4efff1bfa23c3744)
2008-02-18open a root handle in SMB2 should use a NULL filename, not a zero lengthAndrew Tridgell1-1/+2
filename (This used to be commit a29dd708bf26440552ffa9d83332329b4c108857)
2008-02-13updated SMB2 create operation to match WSPP.Andrew Tridgell1-20/+20
Adding some defined for various new create options (This used to be commit d037dc23ced3df6bce98cbf4810fb5f1247336bd)
2007-12-21r26376: Add context for libcli_resolve.Jelmer Vernooij1-1/+2
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-12-21r26267: Fix two calls of smb2_connect I missed.Jelmer Vernooij1-1/+3
(This used to be commit fc824a5c457e341995c14bd1cf34894ffc4c62c2)
2007-12-21r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij1-5/+5
uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-6/+6
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25430: Add the loadparm context to all parametric options.Jelmer Vernooij1-2/+2
(This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
2007-10-10r25159: fix missing declarations warningStefan Metzmacher1-0/+2
metze (This used to be commit 3d321a5efc22f8a702095f7704a36325a97db138)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-2/+3
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)