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
Gerald Carter
66e8ed2632
r6051: finish off
...
net rpc service stop
net rpc service start
net rpc service pause
net rpc service resume
(This used to be commit a7fb2c50b0
)
2007-10-10 10:56:19 -05:00
Gerald Carter
dbb5a1fdab
r6046: $ net -S block -U % -W VALE rpc service status spooler
...
spooler service is SVCCTL_RUNNING.
Configuration details:
Service Type = 0x110
Start Type = 0x2
Error Control = 0x1
Tag ID = 0x0
Executable Path = C:\WINNT\system32\spoolsv.exe
Load Order Group = SpoolerGroup
Dependencies = RPCSS/
Start Name = LocalSystem
Display Name = Print Spooler
(This used to be commit b921bf5688
)
2007-10-10 10:56:18 -05:00
Gerald Carter
0a11209325
r6041: cleaning up output from 'rpc service list'
...
(This used to be commit 7f02ba6646
)
2007-10-10 10:56:18 -05:00
Gerald Carter
9d009834a6
r6040: finish out 'net rpc service list'
...
(This used to be commit 42588ba50c
)
2007-10-10 10:56:18 -05:00
Gerald Carter
eb1adc527b
r6039: add CLI_DO_RPC macro for cookie cutter code; no new functionality to 'net rpc service'
...
(This used to be commit 759affb1e1
)
2007-10-10 10:56:18 -05:00
Gerald Carter
259d44dbb2
r6038: adding more flesh to 'net rpc service'
...
open and close the service control manager.
Also experimenting with ideas for cli_xxx() interface.
(This used to be commit 4da89ef17b
)
2007-10-10 10:56:17 -05:00
Gerald Carter
2e3ce1d534
r6029: adding files necessary to support 'net rpc service' functions; will fill in tomorrow
...
(This used to be commit 6bbd61cfd1
)
2007-10-10 10:56:16 -05:00