summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
AgeCommit message (Collapse)AuthorFilesLines
2011-02-25Implement the SMB2 close flag SMB2_CLOSE_FLAGS_FULL_INFORMATION (and move ↵Jeremy Allison1-1/+0
definition to correct place). Thanks to Nick Meier @ Microsoft for finding this @ Connectathon. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 25 00:40:52 CET 2011 on sn-devel-104
2010-10-14libcli/auth Merge source4/libcli/security and util_sid.c into the common codeAndrew Bartlett1-13/+0
This should ensure we only have one copy of these core functions in the tree. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-06s4:libcli: Modify S4 client library to check for proper CN alignmentSteven Danneman1-1/+3
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in change notify replies must be aligned to 4-byte boundaries. This updates s4 client to check for this restriction and also adds a torture test which should tickle a server into giving unaligned structures if it doesn't follow the spec.
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-3/+0
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij6-15/+10
2010-03-11s4:libcli Use integrated name resolution when connecting SMBAndrew Bartlett1-0/+4
This avoids pulling the address into a string and back again if given a name, by letting the next async layer down do the name resolution. If it was an IP address to start with, then the resolver library just converts that to the struct socket_address. Andrew Bartlett
2010-03-05s4-pvfs: move the private ntcreatex flags to private_flagsAndrew Tridgell2-8/+7
Re-using two of the create_options bits was bound to eventually cause problems, and indeed, Windows7 now uses one of those bits when opening text files. Fixes bug 7189
2010-02-02Change uint_t to unsigned int in source4Matt Kraai11-81/+81
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-29s4:libcli: remove unneeded talloc_reference() usageStefan Metzmacher1-4/+1
metze
2010-01-26s4-libcli: Fixed a talloc_reference error.Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@redhat.com> Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2009-12-10s4-libcli: GUID_from_ndr_blob() is strict about the blob sizeAndrew Tridgell1-2/+4
We need to create a blob of the right length
2009-12-10s4-libcli: use GUID_to_ndr_blob()Andrew Tridgell1-8/+6
2009-12-10s4-libcli: use new GUID functions in libcliAndrew Tridgell2-14/+6
2009-12-07s4/libcli: add define for exclusive lock modeSteven Danneman1-0/+1
2009-12-03s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READZachary Loafman2-0/+4
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-11-25s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman1-1/+1
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
2009-11-17s4/libcli: add a FILE_NOTIFY_CHANGE_ALL macroAravind Srinivasan1-0/+8
This macro encompasses all possible file notifications that can be raised.
2009-10-15s4-libcli: fixed structure element bug in ntcreatexreadxAndrew Tridgell1-1/+1
This one didn't matter until the root_fid changed the alignment of the two structures.
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell2-5/+5
In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
2009-10-01s4/torture: Add two new SMB RAW-OPEN testsAravind Srinivasan2-0/+126
* Add chained NTCREATEX_READX test which first tries to open/read a non-existant file failing on the open, then attempts the same operation on a file that does exist, opening and reading successfully. * Add test for open_dispositions on directories.
2009-08-12libcli/smb: move smb2_create_blob code to libcli/smb/Stefan Metzmacher1-7/+1
I want to use this in source3/smbd/ metze
2009-08-12libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher1-1/+1
This will hold code that's shared between source3 and source4. metze
2009-08-07s4:libcli: move SMB2 Find constants to smb2_constants.hStefan Metzmacher1-16/+0
metze
2009-08-07s4:libcli/raw: we don't need to include "smb.h" explicitStefan Metzmacher4-4/+0
metze
2009-08-07s4:libcli/raw: also include smb2_constants.h into interfaces.hStefan Metzmacher1-1/+2
metze
2009-08-07fixed several places that unnecessarily take a reference to the event contextAndrew Tridgell1-3/+2
These references were triggering the ambiguous talloc_free errors from the recent talloc changes when the server is run using the 'standard' process model instead of the 'single' process model. I am aiming to move the build farm to use the 'standard' process model soon, as part of an effort to make our test environment better match the real deployment of Samba4. The references are not needed as the way that the event context is used is as the 'top parent', so when the event context is freed then all of the structures that were taking a reference to the event context were actually freed as well, thus making the references redundent.
2009-07-02s4:libcli: move SMB2 lock flags to smb2_constants.hStefan Metzmacher1-7/+0
metze
2009-06-09s4: smbcli_transport_send hit the socket right away if possibleSam Liddicott1-0/+7
[Metze; "make test" on git master outputs exactly the same test summary with our without this patch (apart from the "using seed" lines)] If the transport socket is writable, then push the queue along rather than wait until the caller returns back to the tevent loop. This strategy keeps the sockets piping hot, and is particularly good for cases where reading requests from one socket causes lots of writes on another socket, or where lots of writes are made in a batch. It doesn't matter if the socket is not writeable yet, packet_queue_run will return quite cheaply in such a case. Signed-off-by: Sam Liddicott <sam@liddicott.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-05-20s4:libcli/raw: initialy read the first 4 bytes onlyStefan Metzmacher1-0/+1
metze
2009-05-01s4:libcli: remember operating system and lan manager strings from session setupStefan Metzmacher1-0/+3
metze
2009-05-01s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real errorStefan Metzmacher1-1/+1
We should not try to parse the result if the status is not NT_STATUS_OK. metze
2009-04-22libcli: fix a "not handled in switch" compile warningBjörn Jacke1-0/+1
return NULL also for RAW_CLOSE_GENERIC
2009-04-01s4:smb2: Add lease break support for SMB2.1Zach Loafman1-1/+22
Add the structures and marshalling for the lease break variants of the oplock break / oplock break ack messages.
2009-03-28s4:smb2: Add rudimentary SMB2.1 lease support to libcliZach Loafman1-0/+12
Add the structures, constants, and marshalling for SMB2.1 leases.
2009-03-01s4: Use same function signature for convert_* as s3.Jelmer Vernooij2-18/+22
2009-03-01Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2-5/+5
consistency with Samba 3.
2009-02-02s4:libcli/raw: s/class/eclassStefan Metzmacher1-3/+3
metze
2009-02-02s4:libcliraw: s/private/private_dataStefan Metzmacher4-7/+7
metze
2009-02-02s4:libcli/raw: s/private/private_dataStefan Metzmacher5-34/+34
metze
2009-01-19util_str: setup the correct talloc name for stringsStefan Metzmacher1-0/+2
metze (partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher4-13/+13
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
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij2-1/+4
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-0/+2
2008-11-01Move lp_*() calls a bit higher up the calls tack.Jelmer Vernooij2-6/+11
2008-11-01Fix prototype for attrib_string().Jelmer Vernooij1-1/+1
2008-10-24Remove unused include param/param.h.Jelmer Vernooij8-8/+0
2008-10-24Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2-5/+4
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24Remove a few more usages of global_loadparm.Jelmer Vernooij1-3/+2
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij3-2/+9
2008-10-24Just hardcode workgroup to empty string, to avoid use ofJelmer Vernooij1-4/+3
global_loadparm.