1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

57 Commits

Author SHA1 Message Date
Günther Deschner
a74ccb154d werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in source3/utils/
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:21 +02:00
Richard Sharpe
57941aa044 s3: utils: Convert all uses of uint32/16/8 to _t.
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May  7 04:53:39 CEST 2015 on sn-devel-104
2015-05-07 04:53:39 +02:00
Andreas Schneider
94f11e9d16 s3-net: Fix rpc_service_list_internal() null pointer passing.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>

Found by Coverity.

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Jan  2 14:19:50 CET 2013 on sn-devel-104
2013-01-02 14:19:50 +01:00
Jelmer Vernooij
c9fb33697d use usleep rather than sys_usleep in various places, in anticipation of usleep moving to libreplace. 2012-03-24 22:41:05 +01:00
Andrew Bartlett
9729bdf89f s3-utils/net: pass struct ndr_interface_table down
This will allow the target service (as determined from the IDL) to be
passed to GSSAPI (rather than the current, incorrect, "cifs").

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:24 +01:00
Günther Deschner
9824e2e5ee s3-rpc_client: add and use rpc_client/rpc_client.h.
Guenther
2011-04-13 22:23:59 +02:00
Günther Deschner
f9ca6904a4 s3-net: remove some pointless fstrings in "net rpc service".
Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:18:45 +01:00
Günther Deschner
d0c05ab2ec s3-net: restructure "net rpc service" and add open_scm().
Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:18:13 +01:00
Günther Deschner
3e2821acda s3-net: restructure "net rpc service" and add open_service().
Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:17:30 +01:00
Günther Deschner
8e588550b9 s3-svcctl: prefer dcerpc_svcctl_X functions.
Guenther

Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:11:08 +01:00
Günther Deschner
dac7ccee9f s3-net: fix query_service_state() error handling.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 15:22:56 CET 2011 on sn-devel-104
2011-01-12 15:22:56 +01:00
Stefan Metzmacher
1c515fb94b s3:utils/net_rpc_service.c: we also need some ndr_pull functions
metze
2010-08-08 11:05:18 +02:00
Andrew Bartlett
cba7f8b827 s3:dom_sid Global replace of DOM_SID with struct dom_sid
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Jelmer Vernooij
b8268cf7b0 s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
Kai Blin
66de52c4f4 s3 net: Fix compile warnings 2010-01-19 14:48:34 +01:00
Björn Jacke
bd3c922e2b s3/net: split up some printable stings to ease i18n
If we put strings like "Usage:" into separate _() macros and not the whole
"Usage:..." string we can cover much more messages by only one single
translation. The drawback is that the message in the sources looks less pretty.
2010-01-18 23:45:05 +01:00
Günther Deschner
3d679a3b5f s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
Guenther
2009-11-26 20:03:17 +01:00
Volker Lendecke
b02c46bef9 Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table"
This reverts commit 53f2a1595e.
2009-11-08 19:43:46 +01:00
Volker Lendecke
53f2a1595e s3: Make run_rpc_command take strings instead of a ndr_interface_table 2009-11-08 13:12:15 +01:00
Kai Blin
d8af037aab s3 net: i18n support for net rpc service 2009-08-11 09:34:23 +02:00
Günther Deschner
d0c307af56 s3-net: Fix Bug #5329: add "net rpc service delete/create".
Patch from Danny Tylman <danny.tylman@insightix.com>.

Guenther
2009-04-08 22:40:24 +02:00
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
9e6e3bc010 s3-net: use rpccli_svcctl_EnumServicesStatusW.
Guenther
2009-01-09 17:08:18 +01:00
Günther Deschner
154e08f275 s3-net: fix type in rpc_service_list_internal(). Sorry...
Guenther
2009-01-08 19:15:41 +01:00
Günther Deschner
50721b485f s3-svcctl: use pidl based struct SERVICE_STATUS.
Guenther
2009-01-08 13:24:22 +01:00
Günther Deschner
cbc2c9059f s3-svcctl: remove some more redundant headers.
Guenther
2009-01-08 13:24:22 +01:00
Jelmer Vernooij
ddcab787c4 Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
Günther Deschner
d2b836e19a s3: remove rpccli_svcctl_query_config.
Guenther
2008-10-16 09:54:49 +02:00
Volker Lendecke
f23567fcb9 Refactoring: run_rpc_command uses ndr_syntax_id instead of pipe_idx
(This used to be commit 850166ec0d)
2008-07-21 14:36:28 +02:00
Kai Blin
255bdb2602 net: Rename functable3 to functable, get rid of old functables
(This used to be commit bb7c5fc4ec)
2008-06-10 09:48:21 +02:00
Kai Blin
e0f2f8d57e net: Make "net rpc service" use functable3
(This used to be commit aa06cd5cb2)
2008-06-10 09:47:55 +02:00
Kai Blin
f576910944 net: Remove globals
(This used to be commit 1e9319cf88)
2008-05-10 09:22:27 +02:00
Volker Lendecke
9048cafbea Move srv_name_slash from cli_state to rpc_pipe_client
(This used to be commit a9061e52e1)
2008-04-20 00:14:13 +02:00
Günther Deschner
d8acf19987 Move svc_status_string() out of rpc_client/cli_svcctl.c
Guenther
(This used to be commit 2860ae2eb2)
2008-03-20 01:26:37 +01:00
Günther Deschner
2ee6451212 No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
Guenther
(This used to be commit b5291d4773)
2008-03-20 01:24:55 +01:00
Günther Deschner
3c3944ee38 Use rpccli_svcctl_QueryServiceStatus() in net.
Guenther
(This used to be commit 1cc0e9b7e5)
2008-02-19 03:13:18 +01:00
Günther Deschner
87bccd70ca Use rpccli_svcctl_ControlService() in net.
Guenther
(This used to be commit 49375f0b4d)
2008-02-19 03:12:54 +01:00
Günther Deschner
cea7718db8 Use rpccli_svcctl_StartServiceW() in net.
Guenther
(This used to be commit 5ca4358c1a)
2008-02-19 03:12:29 +01:00
Günther Deschner
f40f80008d Use rpccli_svcctl_OpenServiceW() in net.
Guenther
(This used to be commit 1537a2ff36)
2008-02-18 12:58:44 +01:00
Günther Deschner
0ca295bb32 Use rpccli_svcctl_OpenSCManagerW() in net.
Guenther
(This used to be commit 275ce92e27)
2008-02-18 12:10:54 +01:00
Günther Deschner
50e31b9346 Remove whitespace, no code changes.
Guenther
(This used to be commit d752d52f1a)
2008-02-18 11:51:17 +01:00
Günther Deschner
9ab0038348 Fix svcctl callers.
Guenther
(This used to be commit 91bf2ac1af)
2007-12-03 18:43:19 +01:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Gerald Carter
d99f4f004c r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26
(This used to be commit 0b1bc3521f)
2007-10-10 12:23:01 -05:00
Stefan Metzmacher
1888bb4fd9 r18949: use sys_usleep()
metze
(This used to be commit f994494141)
2007-10-10 12:14:49 -05:00
Lars Müller
c42be9fd38 r12986: Use d_fprintf(stderr, ...) for any error message in net.
All 'usage' messages are still printed to stdout.

Fix some compiler warnings for system() calls where we didn't used the
return code.  Add appropriate error messages and return with the error
code we got from system() or NT_STATUS_UNSUCCESSFUL.
(This used to be commit f650e3bdaf)
2007-10-10 11:06:09 -05:00
Gerald Carter
a489553067 r12173: doing some service control work
* Add a few new error codes for disabled services
* dump some more details about service status in 'net rpc service'
* disable the WINS and NetLogon services if not configured in smb.conf

Still trying to figure out how to disable the start button
on the NetLogon and WINS services.
(This used to be commit c0f54eeebc)
2007-10-10 11:05:47 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7)
2007-10-10 11:04:48 -05:00
Gerald Carter
063078d927 r9787: BUG 2998: patch from Humberto Diogenes <virtual.spirit@digizap.com.br> to include 'net rpc service' help in net rpc usage output
(This used to be commit ace8556b65)
2007-10-10 11:03:26 -05:00