summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/nttrans.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-3/+3
2010-03-05s4-pvfs: move the private ntcreatex flags to private_flagsAndrew Tridgell1-0/+1
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 Kraai1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-17s4-smbserver: removed bogus initialisation of two union armsAndrew Tridgell1-1/+0
Thanks to Metze for spotting this.
2009-10-15s4-smb: fill in fnum as well for root_fidAndrew Tridgell1-1/+2
This helps with the CIFS NTVFS backend, but doesn't solve all problems
2009-10-15s4-smbserver: fixed root_fid in nttrans createAndrew Tridgell1-1/+1
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell1-1/+1
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.
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij1-1/+1
functions.
2008-07-24initialise query_maximal_access here tooAndrew Tridgell1-0/+1
(This used to be commit 4b3af09450cf33c6785a3d8fddddc68047f2e388)
2008-07-07smb_server/smb: handle incoming multi fragmented nttrans requestsStefan Metzmacher1-16/+152
metze (This used to be commit 9a5f7bf68b20e3b490b209b5cfc4408566320f2e)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-03-11smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layerStefan Metzmacher1-1/+24
metze (This used to be commit 80711c03e0e8fba6f80261facd939ef00e06c7fd)
2008-03-07Use 32 bit storage for nttrans countsAmin Azez1-5/+5
Erroneous 16bit storage for nttrans counts meant that nttrans behaved "strangely" for sizes of over 64K As 32 bit is used in the SMB message and specified in http://us4.samba.org/samba/ftp/specs/draft-leach-cifs-v1-spec-02.txt section 3.13.2 this fix changes storage to match. Signed-off-by: Amin Azez <azez@ufomechanic.net> (This used to be commit d66b6c3823f003875e3b7cdf63617a894cceadf9)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-3/+3
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2008-02-01Fix sending of large nttrans responses.Amin Azez1-1/+1
req_grow_data was growing the original req, not this_req which was being used for the current fragment. (This used to be commit 2ac47f5ab670f971f41f99700dbfb3655fd6737f)
2008-01-01r26639: librpc: Pass iconv convenience on from RPC connection to NDR ↵Jelmer Vernooij1-2/+2
library, so it can be overridden by OpenChange. (This used to be commit 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
2008-01-01r26638: libndr: Require explicitly specifying iconv_convenience for ↵Jelmer Vernooij1-1/+1
ndr_struct_push_blob(). (This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2007-12-21r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij1-1/+2
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21r26316: Use contexts for conversion functions.Jelmer Vernooij1-1/+1
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher1-14/+20
lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
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)
2007-10-10r21206: - a couple more nttrans places were a memcpy() should be usedAndrew Tridgell1-8/+4
- changed the setup array in nttrans to be a uint8 array, instead of a uint16 array. This makes it clearer that it is the job of the caller to do any byte swapping within that data (This used to be commit fa3c9b29ae1c7c6a9bc97484cc386aeec9b5d266)
2007-10-10r21183: Commit the big/little endian fix for nttrans setup[] handling.Volker Lendecke1-4/+3
Please check! For code symmetry reasons, trans2 might also see this fix, but this is left to the interested reader :-) Volker (This used to be commit f2d364ebe69fc5d624e456cc7d941071811a5567)
2007-10-10r16980: - make struct smb_notify a union and add levels ↵Stefan Metzmacher1-16/+17
RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2 - parse SMB2 Notify reponse metze (This used to be commit de50e0ccddfad16ad7b254770f4c52c1abe707b9)
2007-10-10r15734: This is a major change to the NTVFS subsystem:Stefan Metzmacher1-5/+10
- to use a struct ntvfs_handle instead of a uint16_t fnum. (to make it independend from the frontend protocol) - the allocation of handles now is provided by the frontend (smbsrv_*) via callbacks and not by each backend module - this also makes sure that file handles are only passed to the ntvfs subsystem when the tcon and session matches, so modules can rely on this and need to check this. - this allows multiple modules in the ntvfs module chain to allocate file handles. This can be used for virtual files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"... - also this will make SMB2 with 128 bit file handles possible metze (This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
2007-10-10r15714: fix async handling of ntioctl calls and push the DATA_BLOB into the ↵Stefan Metzmacher1-22/+32
reply metze (This used to be commit 0ac9a49f42719914e63758ea4e53cab65dcdd317)
2007-10-10r15711: - make use of nttrans_setup_reply()Stefan Metzmacher1-14/+9
metze (This used to be commit a870c084f6a97fc4f165510e9d447d97f0ee328f)
2007-10-10r15710: - we no longer need to set the nttrans out fields to zeroStefan Metzmacher1-11/+5
in the backends - some whitespace cleanups metze (This used to be commit 6a0c24c73e1060824576d60459d4636848f2173a)
2007-10-10r15709: - return an error is better than ignoring a non supported requestStefan Metzmacher1-0/+2
- zero nttrans output fields before calling the backends metze (This used to be commit b21d98a87590b00c63ccc47b71518f1714ecb29d)
2007-10-10r15708: setup count is 8bit and param_count and data_count are 32bitStefan Metzmacher1-2/+2
metze (This used to be commit 6bc89b422ccdfca6d383b8474452d57b55dfaed6)
2007-10-10r15656: for NT IOCTL's we need to control the max_data field for some callsStefan Metzmacher1-0/+1
metze (This used to be commit 3cab02f6f513cf7eb3d8863e62952766bb4d908f)
2007-10-10r15640: - NT IOCTL calls also have an 'in' data_blobStefan Metzmacher1-3/+1
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload not the SMB payload here metze (This used to be commit 358d03143f0a78344c1af720e33ebe2619df09df)
2007-10-10r14807: fixed the format of notify responses (forgot to commit this earlier)Andrew Tridgell1-6/+11
(This used to be commit fb91a37e926963acfc90fe276a33c7a329a023e8)
2007-10-10r14638: we need to call smbsrv_setup_reply() before using smbsrv_setup_error()Stefan Metzmacher1-2/+2
tridge: can you please check if the whole function ok? jelmer: this fixes a crash bug, when asking for Security Descriptors and should be in the TP2 metze (This used to be commit b5edcde79339be0fec94e440a87c8191cf53e937)
2007-10-10r14541: separate smbsrv_request and ntvfs_request,Stefan Metzmacher1-27/+11
with this it's now possible to write a ntvfs_test programm like the vfstest in samba3 also smb2 support will be possible later metze (This used to be commit 7253153691e35cd206346fbd4e9b9f95c042f602)
2007-10-10r14539: get rid of a pointless union layer in struct smb_notifyAndrew Tridgell1-12/+12
(This used to be commit 1e1c5593817e84c59c1a10b5a3c1957e363e5198)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-5/+5
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-16/+16
a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r14157: - pass a struct ntvfs_request to the ntvfs layerStefan Metzmacher1-1/+1
(for now we just do #define ntvfs_request smbsrv_request, but it's the first step...) - rename ntvfs_openfile() -> ntvfs_open() - fix the talloc hierachie in some places in the ntvfs_map_*() code metze (This used to be commit ed9ed1f48f602354810937c0b0de850b44322191)
2007-10-10r14142: fixed ascii padding of nttrans create in server tooAndrew Tridgell1-2/+2
(This used to be commit 2cd4cd1674b7491abf796f625ee098bb2c03e631)
2007-10-10r14013: added construction of the notify reply buffer in the nttrans serverAndrew Tridgell1-9/+62
code the RAW-NOTIFY test now passes against the CIFS backend (This used to be commit e03a2e2de2ad7cd7e692248a681a46ffc1447541)
2007-10-10r14011: - added a ntvfs_notify op to allow backends to support change notifyAndrew Tridgell1-186/+267
- converted the nttrans server side code to be async (needed for change notify) This is the start of some work on supporting change notify via a new approach. More soon. (This used to be commit 0ad70bfd83b4a03c0e67f11f63822b833be67aa1)
2007-10-10r13877: remove smbsrv_send_dos_error() and use ↵Stefan Metzmacher1-1/+1
smbsrv_send_error(..,NT_STATUS_DOS()) metze (This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
2007-10-10r13870: prefix more functions with smbsrv_Stefan Metzmacher1-11/+11
metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
2007-10-10r13865: prefix functions with smbsrv_Stefan Metzmacher1-2/+2
metze (This used to be commit 2af96632757ee4bb0261b1871100008b48c5fd4d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12542: Move some more prototypes out to seperate headersJelmer Vernooij1-0/+1
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.Jelmer Vernooij1-0/+1
(This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)