summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs/ipc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the developer O3 buildVolker Lendecke2015-02-251-4/+4
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Feb 25 16:32:29 CET 2015 on sn-devel-104
* s4: pass down a memory context when performing share_string_option, to allow ↵Garming Sam2014-02-201-1/+1
| | | | | | | | | 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-30/+30
| | | | | | | | | | | 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/ipc: fix protocol specific processing of pipe namesStefan Metzmacher2012-05-281-2/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon May 28 21:48:47 CEST 2012 on sn-devel-104
* s4:ntvfs: add missing headers to vfs_ipcAlexander Bokovoy2012-05-041-0/+2
| | | | | | vfs_ipc.c had system/kerberos.h and system/filesys.h missing Signed-off-by: Simo Sorce <idra@samba.org>
* s4:ntvfs/ipc: don't echo back the smb2 ioctl input_bufferStefan Metzmacher2012-04-271-1/+1
| | | | metze
* lib/replace: split out GSSAPI from lib/replace/system/kerberos.h into ↵Alexander Bokovoy2012-04-251-1/+1
| | | | | | | | | | | | | | lib/replace/system/gssapi.h With waf build include directories are defined by dependencies specified to subsystems. Without proper dependency <gssapi/gssapi.h> cannot be found for embedded Heimdal builds when there are no system-wide gssapi/gssapi.h available. Split out GSSAPI header includes in a separate replacement header and use that explicitly where needed. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Wed Apr 25 00:18:33 CEST 2012 on sn-devel-104
* libcli: move ioctl function field defs to smb_constantsDavid Disseldorp2011-10-191-1/+1
| | | | | | | Currently there are a lot of duplicate ioctl function field definitions between source3 and source4. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-201-7/+7
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* libcli/named_pipe_auth Change from 'info3' to auth_session_info_transportAndrew Bartlett2011-02-101-49/+7
| | | | | | | | | | | | | | | This changes the structure being used to convey the current user state from the netlogon-derived 'netr_SamInfo3' structure to a purpose-built structure that matches the internals of the Samba auth subsystem and contains the final group list, as well as the final privilege set and session key. These previously had to be re-created on the server side of the pipe each time. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-auth Rework auth subsystem to remove struct auth_serversupplied_infoAndrew Bartlett2011-02-091-3/+11
| | | | | | | | | | | | | This changes auth_serversupplied_info into the IDL-defined struct auth_user_info_dc. This then in turn contains a struct auth_user_info, which is the only part of the structure that is mainted into the struct session_info. The idea here is to avoid keeping the incomplete results of the authentication (such as session keys, lists of SID memberships etc) in a namespace where it may be confused for the finalised results. Andrew Barltett
* s4: make pipes with underscore works alsoMatthieu Patou2011-01-091-1/+3
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jan 9 15:47:01 CET 2011 on sn-devel-104
* s4-rpc: split the dcesrv reply code out of dcerpc_serverAndrew Tridgell2010-10-301-0/+1
| | | | | | | this allows us to remove a dependency on the dcerpc_server from code that uses rpc forwarding Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-rpc_server: split out DCERPC_SHARE as a separate subsystemAndrew Tridgell2010-10-211-0/+1
| | | | | | this avoids a problem with -Wl,-no-undefined in the ntvfs layer Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-162-2/+2
| | | | | | | 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>
* s4:ntvfs/ipc/vfs_ipc.c - remove unused codeMatthias Dieter Wallnöfer2010-06-291-4/+0
| | | | Spotted by the Solaris 10 compiler
* s4:ntvfs/ipc/vfs_ipc.c - add casts to suppress warnings on Solaris 10Matthias Dieter Wallnöfer2010-06-291-3/+3
|
* s4:ntvfs/ipc/vfs_ipc.c - add more "const" in order to fix warningsMatthias Dieter Wallnöfer2010-05-211-2/+2
|
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-182-9/+6
|
* s4:ntvfs/ipc: remote // debug commentsStefan Metzmacher2010-04-271-5/+0
| | | | metze
* s4:ntvfs/ipc: pass the already given tsocket_address structures to the ↵Stefan Metzmacher2010-04-271-29/+2
| | | | | | named_pipe_auth code metze
* s4: fix some build warnings.Günther Deschner2010-04-261-1/+1
| | | | Guenther
* s4: use generated rap header.Günther Deschner2010-04-263-3/+3
| | | | Guenther
* s4: rename RAP share_enum_info to share_info.Günther Deschner2010-04-262-11/+11
| | | | Guenther
* s4-krb5: propogate errors from a lot more kerberos functionsAndrew Tridgell2010-02-261-1/+2
| | | | | | | | We need to be able to give sensible error messages when a kerberos calls fails. This propogates the kerberos error up the stack to the caller. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:vfs_ipc - fix "ipc_open" for NTTRANS create requestsMatthias Dieter Wallnöfer2009-11-071-2/+2
|
* s4-pipes: convert pipe names to lowercase and validateAndrew Tridgell2009-09-181-0/+19
| | | | | clients may provide arbitrary names, but we only want lowercase alnum names
* s4:ntvfs_ipc: add real named pipe supportStefan Metzmacher2009-09-181-235/+649
| | | | | | | | | | | | | | | | | | We now open a named via the named_pipe_auth code and process IO via the tstream interface. This means we support byte mode and message mode named pipes. We also correctly issue NT_STATUS_PIPE_BUSY when a smb_trans request comes in and a read or smb_trans is already pending. We also have support for async dcerpc over ncacn_np now, and we now can remove the ncacn_np specific hacks from the rpc_server/ code. metze
* s4:ntvfs/ipc: replace unnesessary talloc_reference() by a simple talloc_strdup()Stefan Metzmacher2009-07-151-1/+2
| | | | metze
* 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:ntvfs/ipc: s/private/iprivStefan Metzmacher2009-02-021-44/+44
| | | | metze
* Fix the mess with ldb includes.Simo Sorce2009-01-301-0/+1
| | | | | | | | Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-292-4/+4
| | | | | | | | | | | | | | | | | | | | 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
* Fix more compiler warnings.Jelmer Vernooij2008-12-231-2/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+2
| | | | remove some unused functions.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* implement the documented SMB2 create blobs in the serverAndrew Tridgell2008-05-281-1/+1
| | | | | | Not all of them are honoured yet, but they are all parsed and the ones that have SMB equivalents are honoured (This used to be commit 9fc70e2ed6a54f6d9a0530f4d37c0f8acadb6778)
* Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2008-04-173-5/+11
| | | | (This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
* updated SMB2 create operation to match WSPP.Andrew Tridgell2008-02-131-2/+2
| | | | | Adding some defined for various new create options (This used to be commit d037dc23ced3df6bce98cbf4810fb5f1247336bd)
* r26672: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij2008-01-053-12/+20
| | | | (This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
* r26440: Remove more uses of global_loadparm.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
* r26432: Require ndr_pull users to specify iconv_convenience.Jelmer Vernooij2007-12-211-2/+2
| | | | (This used to be commit 28b1d36551b75241c1cf9fca5d74f45a6dc884ab)
* r26431: Require ndr_push creators to specify a iconv_convenience context.Jelmer Vernooij2007-12-211-4/+5
| | | | (This used to be commit 7352206f4450fdf881b95bda064cedd9d2477e4c)
* r26382: Remove more uses of global_loadparm.Jelmer Vernooij2007-12-211-1/+2
| | | | (This used to be commit 6d4c59853481855c232e7cf97264a391f40af2b5)
* r26353: Remove use of global_loadparm.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 17637e4490e42db6cdef619286c4d5a0982e9d1a)
* r26296: Store loadparm context in DCE/RPC server context.Jelmer Vernooij2007-12-211-1/+2
| | | | (This used to be commit fc1f4d2d65d4c983cba5421e7ffb64dd75482860)
* r26053: IPC_RAP: don't use ndr_pull_save anymoreStefan Metzmacher2007-12-211-6/+6
| | | | | metze (This used to be commit 590dd7f8a1ccba762dfcdfb036cf44306da2354a)
* r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher2007-12-211-48/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r24075: As suggested by metze, match the behaviour of ntvfs_posix, and removeAndrew Bartlett2007-10-101-0/+1
| | | | | | | | | | the backend data (effectivly closing the handle) when we close an IPC FD. This should fix #4821. Andrew Bartlett (This used to be commit efaf91b9d53c1d9b882c53e069e8e7c15394e0f3)