summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs/cifs
Commit message (Collapse)AuthorAgeFilesLines
* s4: tidy up vfs cifs in regards to using share_string_optionGarming Sam2014-02-241-21/+22
| | | | | | | | Change-Id: I014bce667d3f875a913dbccf269b514f7ffbab7b 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: 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-8/+30
| | | | | | | | | 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-32/+32
| | | | | | | | | | | 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/cifs: remove misleading comment regarding security=serverStefan Metzmacher2012-05-151-1/+0
| | | | metze
* s4:libcli/raw: implement on top of smbXcli_conn/reqStefan Metzmacher2011-11-301-1/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
* s4:ntvfs/cifs: add option to use S4U2ProxyStefan Metzmacher2011-06-221-0/+49
| | | | | | | | | Note: this doesn't work against a Samba4 KDC yet. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jun 22 18:17:43 CEST 2011 on sn-devel-104
* s4:ntvfs/cifs: return NT_STATUS_INTERNAL_ERROR if no credentials are availableStefan Metzmacher2011-05-181-1/+1
| | | | | | | | | | This is a configuration problem on the server, no invalid parameter from the client. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 18 08:49:00 CEST 2011 on sn-devel-104
* 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-7/+7
| | | | | | | 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>
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-1/+0
|
* 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-1/+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:libcliraw: s/private/private_dataStefan Metzmacher2009-02-021-12/+12
| | | | metze
* s4:ntvfs/cifs/: s/private/pStefan Metzmacher2009-02-021-108/+108
| | | | metze
* vfs_cifs - Use ntvfs request transport close to close downstream sessionSam Liddicott2008-12-051-1/+11
| | | | | | | When upstream session closes, close the downstream session Signed-off-by: Sam Liddicott <sam@liddicott.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-021-0/+1
| | | | | | Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-021-0/+1
|
* Eliminate another instance of global_loadparm.Jelmer Vernooij2008-10-241-0/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Pass session options around; saves another use of global_loadparm.Jelmer Vernooij2008-09-301-0/+1
|
* added support for the output fields of SMB2 closeAndrew Tridgell2008-05-271-0/+10
| | | | (This used to be commit 2633bc749792c224acc73a2e4ca723404331c19c)
* Remove event context tracking from the credentials struct.Jelmer Vernooij2008-04-171-2/+0
| | | | (This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANSStefan Metzmacher2008-03-121-0/+7
| | | | | metze (This used to be commit b43f1a53dd185cc51a3fb8a18e311abb77c2a7c9)
* vfs_cifs: disable level2 oplocks if the frontend client doesn't support themStefan Metzmacher2008-03-071-1/+5
| | | | | metze (This used to be commit a63910e8e5c075aff45b8eb0d246d2823f09bb9c)
* Fix open file tracking in vfs_cifs so that oplock breaks can propagateAmin Azez2008-02-121-4/+16
| | | | | | | | | | | | | Oplock breaks were not propagating because the list of open files was not being maintained. This fixes that based on best-guess of how it should work. It has been tested manually with windows XP client obtaining an oplock from a windows 2003 server, which then broke the lock when smbclient read the same file. Previously the smbclient read blocked until the oplock timed out (This used to be commit 1a53aeff9a9e8fe83fde5a617463a5b363c45313)
* r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij2008-01-031-7/+1
| | | | | | options for SMB individually, just specify the smbcli_options struct. (This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
* r26651: libsmb: Allow specifying signing policy from higher up.Jelmer Vernooij2008-01-031-0/+1
| | | | | | | | The number of arguments is getting a bit excessive now, so it probably makes sense to pass in the smbcli_options struct rather than all members individually and add a convenience function for obtaining a smbcli_options struct from a loadparm context. (This used to be commit 9f64213463b5bf3bcbf36913139e9a5042e967a2)
* r26646: libcli/smb_composite: Allow specifying SMB parameters in ↵Jelmer Vernooij2008-01-021-0/+6
| | | | | | smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections. (This used to be commit 0ef75e4e3cb0e1bd10e367a00f5e9b725587c40a)
* r26644: Janitorial: Pass resolve_context explicitly to various SMB ↵Jelmer Vernooij2008-01-021-1/+4
| | | | | | functions, should help fix the build for OpenChange. (This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
* r26430: require explicit specification of loadparm context.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 1b947fe0e6e16318e5a8127bb4932d6b5d20bcf6)
* r26409: Pass smb ports along.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
* r26353: Remove use of global_loadparm.Jelmer Vernooij2007-12-211-3/+3
| | | | (This used to be commit 17637e4490e42db6cdef619286c4d5a0982e9d1a)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-13/+13
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-3/+3
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-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)
* r23136: Set the event context onto the credentials in more places.Andrew Bartlett2007-10-101-0/+2
| | | | | | | This helps ensure that the kerberos code uses the right event context. Andrew Bartlett (This used to be commit cbdce358ae8f86c9b76a50537b931e56b07ee213)
* r23067: use 'const union smb_search_data *file' also in the server code to ↵Stefan Metzmacher2007-10-101-2/+2
| | | | | | | | | get rid of compiler warnings in the cifs backend metze (This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)
* r23064: Clarify comment and indentAndrew Bartlett2007-10-101-1/+1
| | | | (This used to be commit 607e8409f86b28c51a058555021cd45c1cb72a26)
* r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2007-10-101-0/+1
| | | | | | | | | Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
* r17930: Merge noinclude branch:Jelmer Vernooij2007-10-101-1/+1
| | | | | | | * Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
* r17206: Add a modular API for share configuration.Simo Sorce2007-10-101-11/+22
| | | | | Commit the classic backwards compatible module which is the default one (This used to be commit a89cc346b9296cb49929898d257a064a6c2bae86)
* r16980: - make struct smb_notify a union and add levels ↵Stefan Metzmacher2007-10-101-3/+7
| | | | | | | | | RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2 - parse SMB2 Notify reponse metze (This used to be commit de50e0ccddfad16ad7b254770f4c52c1abe707b9)
* r16950: remove the smb mid from the ntvfs layer and keep a list of pendingStefan Metzmacher2007-10-101-1/+1
| | | | | | | | requests on the smbsrv_connection, to be able to match then on ntcancel metze (This used to be commit 04f0d3d03179b6060fd013b867d13caa92ec6460)
* r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
* r15741: move smb2 request structures into the main smb request structsStefan Metzmacher2007-10-101-0/+2
| | | | | | | as new levels metze (This used to be commit 91806353174704857dfcc15a730af7232cfde660)
* r15734: This is a major change to the NTVFS subsystem:Stefan Metzmacher2007-10-101-50/+138
| | | | | | | | | | | | | | | | | - 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)
* r15694: for the cifs backend it's desired that we pull and repushStefan Metzmacher2007-10-101-1/+1
| | | | | | | | | the packets with our parsing code for the most stuff. So make cifs:maptrans2=yes the default. metze (This used to be commit 2a9e55fafc1368496bec4c4870070cfa0a19ca5e)