1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

37 Commits

Author SHA1 Message Date
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 850166ec0d17eb85a0c921dc3b966fac0677af4a)
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 bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
2008-06-10 09:48:21 +02:00
Kai Blin
e0f2f8d57e net: Make "net rpc service" use functable3
(This used to be commit aa06cd5cb2c72cc6c883bbfafe43546accce00a1)
2008-06-10 09:47:55 +02:00
Kai Blin
f576910944 net: Remove globals
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
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 a9061e52e1ff8e31aa480f4a30cda64c9d93214e)
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 2860ae2eb2cb99b4febb352f516b3fa9fbd2abbb)
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 b5291d477381521cd4b71674616f8c9899007002)
2008-03-20 01:24:55 +01:00
Günther Deschner
3c3944ee38 Use rpccli_svcctl_QueryServiceStatus() in net.
Guenther
(This used to be commit 1cc0e9b7e5b8685dc4aff8e379837dd32e386f9f)
2008-02-19 03:13:18 +01:00
Günther Deschner
87bccd70ca Use rpccli_svcctl_ControlService() in net.
Guenther
(This used to be commit 49375f0b4d5ead7d26659cfc94997bd3e18c48a9)
2008-02-19 03:12:54 +01:00
Günther Deschner
cea7718db8 Use rpccli_svcctl_StartServiceW() in net.
Guenther
(This used to be commit 5ca4358c1a2c13b316df7cc07d8ca5b820c79988)
2008-02-19 03:12:29 +01:00
Günther Deschner
f40f80008d Use rpccli_svcctl_OpenServiceW() in net.
Guenther
(This used to be commit 1537a2ff36841fea7bd5d49283667dd02bae84b8)
2008-02-18 12:58:44 +01:00
Günther Deschner
0ca295bb32 Use rpccli_svcctl_OpenSCManagerW() in net.
Guenther
(This used to be commit 275ce92e277c0d30cfa098e62674111c994aeb4c)
2008-02-18 12:10:54 +01:00
Günther Deschner
50e31b9346 Remove whitespace, no code changes.
Guenther
(This used to be commit d752d52f1a4b75d7d4934da66566bc62e14caf27)
2008-02-18 11:51:17 +01:00
Günther Deschner
9ab0038348 Fix svcctl callers.
Guenther
(This used to be commit 91bf2ac1af66acd8bcc831e758b3765fc94b2485)
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 b0132e94fc5fef936aa766fb99a306b3628e9f07)
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 407e6e695b8366369b7c76af1ff76869b45347b3)
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 0b1bc3521fac52f3164b6cc9e053abc3ceabf5e7)
2007-10-10 12:23:01 -05:00
Stefan Metzmacher
1888bb4fd9 r18949: use sys_usleep()
metze
(This used to be commit f9944941415b88559b67f6c7e780e364d5030240)
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 f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)
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 c0f54eeebc84ec9fab63c5b105511762bcc136be)
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 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
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 ace8556b6525959114bea47d3be3b1b40756b058)
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 a7fb2c50b07a7d9965675272a71f42beba92acfe)
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 b921bf568835042a43bb0bcb2abd9d36c9d2e43f)
2007-10-10 10:56:18 -05:00
Gerald Carter
0a11209325 r6041: cleaning up output from 'rpc service list'
(This used to be commit 7f02ba6646d5c9685250b8ee6e45c9723d748143)
2007-10-10 10:56:18 -05:00
Gerald Carter
9d009834a6 r6040: finish out 'net rpc service list'
(This used to be commit 42588ba50cb1b47a00f3e0bed33ca3431eb8af14)
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 759affb1e1aa59fcb878b4dee781aa362b3e7e1c)
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 4da89ef17b8c4644b97b923cebfe8e446b508b4d)
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 6bbd61cfd1ca2dbe8d96d894f90f263b8f24571f)
2007-10-10 10:56:16 -05:00