summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs/smb2
Commit message (Collapse)AuthorAgeFilesLines
* s4: tidy up vfs smb2 in regards to using share_string_optionGarming Sam2014-02-241-21/+21
| | | | | | | | | | | Change-Id: Ieae6b5ddc2cd9983489c374605e4740371e81883 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Feb 24 19:16:48 CET 2014 on sn-devel-104
* s4: tidy up some null checks in ntvfsGarming Sam2014-02-241-2/+2
| | | | | | | | Change-Id: I629a299bea10b063de4525020a4c6b838260cd67 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
* s4: pass down a memory context when performing share_string_option, to allow ↵Garming Sam2014-02-201-9/+35
| | | | | | | | | substitutions Signed-off-by: Garming Sam <garming@catalyst.net.nz> Change-Id: I24b36db3ac11834c3268b2da929e214c10268b16 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
* s4:ntvfs: add '_fn' suffix to all ntvfs_ops function pointersStefan Metzmacher2012-06-131-31/+31
| | | | | | | | | | | This hopefully fixes the build on systems where _LARGE_FILES triggers defines of syscalls e.g. '#define lseek lseek64' on AIX. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jun 13 11:03:15 CEST 2012 on sn-devel-104
* s4:ntvfs/smb2: remove misleading comment regarding security=serverStefan Metzmacher2012-05-151-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 15 10:12:53 CEST 2012 on sn-devel-104
* s4:ntvfs/smb2/vfs_smb2.c - remove unused variableMatthias Dieter Wallnöfer2011-06-111-1/+0
| | | | Reviewed-by: Jelmer
* s4:ntvfs/smb2: use sync version of smb2_connect()Stefan Metzmacher2011-04-281-10/+8
| | | | | | We don't use it in an async fashion anyway. metze
* source4/ntvfs: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+2
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-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>
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4: fixed some shadowed variable warningsAndrew Tridgell2009-09-081-3/+3
|
* Have ntvfs_connect() accept union smb_tcon *tcon instead of char* sharenameSam Liddicott2009-05-201-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change brings ntvfs_connect into compliance with other ntvfs functions which take an ntvfs module, an ntvfs request and an smb io union. It now becomes the responsibility of ntvfs modules to examine tcon->generic.level themselves and derive the share name and any other options directly; e.g. const char *sharename; switch (tcon->generic.level) { case RAW_TCON_TCON: sharename = tcon->tcon.in.service; break; case RAW_TCON_TCONX: sharename = tcon->tconx.in.path; break; case RAW_TCON_SMB2: default: return NT_STATUS_INVALID_LEVEL; } if (strncmp(sharename, "\\\\", 2) == 0) { char *p = strchr(sharename+2, '\\'); if (p) { sharename = p + 1; } } service.c smbsrv_tcon_backend() is called before ntvfs_connect and fills in some of the tcon->..out values. For the case of RAW_TCON_TCONX, it filles out tcon->tconx.out.tid and tcon->tconx.out.options For the case of RAW_TCON_TCON it fills out tcon->tcon.out.tid and tcon->tcon.out.max_xmit Thus the ntvfs_connect function for vfs modules may override these values if desired, but are not required to. ntvfs_connect functions are required to fill in the tcon->tconx.out.*_type fields, for RAW_TCON_TCONX, perhaps something like: if (tcon->generic.level == RAW_TCON_TCONX) { tcon->tconx.out.fs_type = ntvfs->ctx->fs_type; tcon->tconx.out.dev_type = ntvfs->ctx->dev_type; } Signed-off-by: Sam Liddicott <sam@liddicott.com> (I fixed the ntvfs_connect() in the smb_server/smb2/ and the RAW_TCON_SMB2 switch case in the modules) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:ntvfs/smb2: s/private/pStefan Metzmacher2009-02-021-39/+39
| | | | metze
* Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij2008-11-021-1/+2
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-1/+3
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-1/+3
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* implemented client side SMB2 signingAndrew Tridgell2008-05-301-2/+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)
* added SMB2 proxying of rmdirAndrew Tridgell2008-05-191-1/+12
| | | | (This used to be commit 1e0c24b2760f2a632333b51710cd9581f0cee851)
* added mkdir to SMB2 proxyAndrew Tridgell2008-05-191-1/+8
| | | | (This used to be commit 1323aab11fbf346e19c4cef227d727ddfcaa7d60)
* added SMB2 proxying for unlinkAndrew Tridgell2008-05-161-427/+43
| | | | (This used to be commit a5459bd88092863668db199953458fe97162240c)
* added handlers for connect, search_first and fsinfo. Andrew Tridgell2008-05-151-152/+225
| | | | | Directory listing in smbclient now works (This used to be commit 8007342061d77eb711af0652ecd38aec0d3cc9d1)
* started new vfs_smb2 moduleAndrew Tridgell2008-05-151-0/+1137
This new module is based on the vfs_cifs module. The idea is to create a backend which maps SMB requests to a SMB2 server. This will allow existing test suites for SMB to be run against our SMB2 client and server code. It will also help validate our SMB2 client library, probably leading to some API changes to make it flexible enough (This used to be commit 6ea8295a64ff5425def11b0d1cd988ef000320be)