Joseph Sutton
13a04d6791
s4:rpc_server: Add missing newlines to debugging messages
...
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-08 04:39:37 +00:00
Andrew Bartlett
7415f712db
smb.conf: Remove "share backend" option
...
This is a confusing hold-over from the NTVFS fileserver that never became part of
the merged architecture.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-03-26 03:04:39 +00:00
Matthew DeVore
232054c09b
lib/util: remove extra safe_string.h file
...
lib/util/safe_string.h is similar to source3/include/safe_string.h, but
the former has fewer checks. It is missing bcopy, strcasecmp, and
strncasecmp.
Add the missing elements to lib/util/safe_string.h remove the other
safe_string.h which is in the source3-specific path. To accomodate
existing uses of str(n?)casecmp, add #undef lines to source files where
they are used.
Signed-off-by: Matthew DeVore <matvore@google.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Aug 28 02:18:40 UTC 2020 on sn-devel-184
2020-08-28 02:18:40 +00:00
Ralph Boehme
7dc7b9e554
smbdotconf: mark "server string" with substitution="1"
...
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2019-11-27 10:25:36 +00:00
Stefan Metzmacher
ba127cab2c
s4:rpc_server/srvsvc: make use dcesrv_call_session_info()
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-01-12 03:13:33 +01:00
Andreas Schneider
1508ff9cc4
s4:rpc_server: Add FALL_THROUGH statements in dcesrv_srvsvc.c
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-03-01 04:37:43 +01:00
Uri Simchoni
4171191dae
s2-rpc-server: fix enum type in assignment
...
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-11-22 10:20:21 +01:00
Günther Deschner
9da8e8944b
werror: replace WERR_UNKNOWN_LEVEL with WERR_INVALID_LEVEL in source4/rpc_server/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:35 +02:00
Günther Deschner
d8d8b5dceb
werror: replace WERR_DEVICE_NOT_SHARED with WERR_NERR_DEVICENOTSHARED in source4/rpc_server/srvsvc/dcesrv_srvsvc.c
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:28 +02:00
Günther Deschner
160d5c40a6
werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/rpc_server/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:23 +02:00
Günther Deschner
cda198c0c5
werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source4/rpc_server/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:21 +02:00
Garming Sam
1fb1f6bc0d
lib/param: handle non-constant strings properly by passing in a memory context
...
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Change-Id: Ic6bb1c709defd2b0f35fc7b877da0badca385776
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
2014-02-20 10:11:06 +13:00
Garming Sam
bce62e6000
s4: pass down a memory context when performing share_string_option, to allow 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>
2014-02-20 10:11:00 +13:00
Garming Sam
2ca2ab3550
param: rename lp function and variable from "serverstring" to "server_string"
...
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-02-07 16:19:11 -08:00
Jelmer Vernooij
2f4bd23e9e
dcesrv_srvsvc: Use constants.
2010-12-19 21:44:06 +01:00
Andrew Tridgell
56640a8501
s4-rpc_server: split out DCERPC_SHARE as a separate subsystem
...
this avoids a problem with -Wl,-no-undefined in the ntvfs layer
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-21 19:03:27 +11:00
Andrew Bartlett
f7ffc12e2d
libcli/security Use static SIDs rather than parsing from strings
...
This should make the security_token_is_*() calls a little faster.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
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>
2010-07-16 18:24:27 +10:00
Matthias Dieter Wallnöfer
6f6365daba
s4:rpc_server/srvsvc/dcesrv_srvsvc.c - remove unreachable code
2010-06-26 20:08:47 +02:00
Stefan Metzmacher
11a402afa8
s4:rpc_server/srvsvc: remove unused ZERO_STRUCT(r->out);
...
Here it doesn't matter, but it's a bad example for other code
as it might reset the [out,ref] pointers which are already
generated by the pidl generated code.
metze
2010-03-10 17:12:09 +01:00
Matthias Dieter Wallnöfer
05bd8c17be
s4:srvsvc RPC - revert one unsigned integer "i" back to signed
...
This is needed since this particular "i" counts until "count" which itself is
signed. "count" is set through a signed integer variable parameter from the
"share_list_all" call.
2010-03-01 21:18:43 +01:00
Matthias Dieter Wallnöfer
ff17d8ab1e
s4:srvsvc RPC - make this one "signed-safe"
2010-03-01 18:45:20 +01:00
Andrew Tridgell
1261d694f0
more include minimisation
2009-09-19 14:12:01 -07:00
Andrew Kroeger
5fb6530295
s4:srvsvc: Fix logic on error checking.
2009-09-10 01:09:57 +02:00
Jelmer Vernooij
d3df4061d9
Use struct for server versions.
2008-11-01 15:50:52 +01:00
Günther Deschner
f25b645ab1
s4-srvsvc: merge srvsvc_NetShareEnum from s3 idl.
...
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
7204deac82
s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.
...
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
947e14adae
s4-srvsvc: merge srvsvc_NetSessEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
546fb4028a
s4-srvsvc: merge srvsvc_NetFileEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
8f99170ab9
s4-srvsvc: merge srvsvc_NetConnEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
d1340df8b8
s4-srvsvc: merge srvsvc_NetCharDevQEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
07f1bb3abc
s4-srvsvc: merge srvsvc_NetCharDevEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
439f197a68
s4-srvsvc: merge srvsvc_NetDiskEnum from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
7255209177
s4-srvsvc: merge srvsvc_NetFileGetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
b70d984f8f
s4-srvsvc: merge srvsvc_NetCharDevQGetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
6e9d69e4c8
s4-srvsvc: merge srvsvc_NetCharDevGetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
c982b36930
s4-srvsvc: merge srvsvc_NetSrvGetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
d2cc4e63c5
s4-srvsvc: merge srvsvc_NetTransportEnum from s3 idl.
...
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
227c6ed8ea
s4-srvsvc: merge srvsvc_NetShareGetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
523732ed2d
s4-srvsvc: merge srvsvc_NetShareSetInfo from s3 idl.
...
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
3206f35527
s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
...
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
31b067a6dd
s4-srvsvc: merge srvsvc_NetShareCheck from s3 idl.
...
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
9fd82703d1
s4-srvsvc: merge srvsvc_NetRemoteTOD from s3 idl.
...
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
f61ce2fe41
s4-srvsvc: merge srvsvc_NetSetFileSecurity from s3 idl.
...
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
95e438d9b3
s4-srvsvc: merge srvsvc_NetSetFileSecurity from s3 idl.
...
Guenther
2008-10-31 02:44:29 +01:00
Günther Deschner
0b95cb251c
s4-srvsvc: merge srvsvc_NetShareInfo502 from s3.
...
Apparently both s3 and s4 are not entirely correct one this. metze is looking
into hand-marshalling security descriptors so this will fix this finally. For
now, just keep the two in sync.
Guenther
2008-10-31 02:44:29 +01:00
Günther Deschner
c7dcf7da55
s4-srvsvc-server: fix obvious level mismatch in dcesrv_srvsvc_NetShareAdd().
...
Guenther
2008-10-29 21:06:38 +01:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
e31abef15f
r26440: Remove more uses of global_loadparm.
...
(This used to be commit 8858cf39722f192865e531164c72039fd18d7a8d)
2007-12-21 05:50:08 +01:00