1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

26 Commits

Author SHA1 Message Date
Kai Blin
1e9319cf88 net: Remove globals 2008-05-10 09:22:27 +02:00
Volker Lendecke
a9061e52e1 Move srv_name_slash from cli_state to rpc_pipe_client 2008-04-20 00:14:13 +02:00
Günther Deschner
2860ae2eb2 Move svc_status_string() out of rpc_client/cli_svcctl.c
Guenther
2008-03-20 01:26:37 +01:00
Günther Deschner
b5291d4773 No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
Guenther
2008-03-20 01:24:55 +01:00
Günther Deschner
1cc0e9b7e5 Use rpccli_svcctl_QueryServiceStatus() in net.
Guenther
2008-02-19 03:13:18 +01:00
Günther Deschner
49375f0b4d Use rpccli_svcctl_ControlService() in net.
Guenther
2008-02-19 03:12:54 +01:00
Günther Deschner
5ca4358c1a Use rpccli_svcctl_StartServiceW() in net.
Guenther
2008-02-19 03:12:29 +01:00
Günther Deschner
1537a2ff36 Use rpccli_svcctl_OpenServiceW() in net.
Guenther
2008-02-18 12:58:44 +01:00
Günther Deschner
275ce92e27 Use rpccli_svcctl_OpenSCManagerW() in net.
Guenther
2008-02-18 12:10:54 +01:00
Günther Deschner
d752d52f1a Remove whitespace, no code changes.
Guenther
2008-02-18 11:51:17 +01:00
Günther Deschner
91bf2ac1af Fix svcctl callers.
Guenther
2007-12-03 18:43:19 +01:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Gerald Carter
0b1bc3521f r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26 2007-10-10 12:23:01 -05:00
Stefan Metzmacher
f994494141 r18949: use sys_usleep()
metze
2007-10-10 12:14:49 -05:00
Lars Müller
f650e3bdaf 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.
2007-10-10 11:06:09 -05:00
Gerald Carter
c0f54eeebc 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.
2007-10-10 11:05:47 -05:00
Gerald Carter
939c3cb5d7 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)
2007-10-10 11:04:48 -05:00
Gerald Carter
ace8556b65 r9787: BUG 2998: patch from Humberto Diogenes <virtual.spirit@digizap.com.br> to include 'net rpc service' help in net rpc usage output 2007-10-10 11:03:26 -05:00
Gerald Carter
a7fb2c50b0 r6051: finish off
net rpc service stop
        net rpc service start
        net rpc service pause
        net rpc service resume
2007-10-10 10:56:19 -05:00
Gerald Carter
b921bf5688 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
2007-10-10 10:56:18 -05:00
Gerald Carter
7f02ba6646 r6041: cleaning up output from 'rpc service list' 2007-10-10 10:56:18 -05:00
Gerald Carter
42588ba50c r6040: finish out 'net rpc service list' 2007-10-10 10:56:18 -05:00
Gerald Carter
759affb1e1 r6039: add CLI_DO_RPC macro for cookie cutter code; no new functionality to 'net rpc service' 2007-10-10 10:56:18 -05:00
Gerald Carter
4da89ef17b r6038: adding more flesh to 'net rpc service'
open and close the service control manager.

Also experimenting with ideas for cli_xxx() interface.
2007-10-10 10:56:17 -05:00
Gerald Carter
6bbd61cfd1 r6029: adding files necessary to support 'net rpc service' functions; will fill in tomorrow 2007-10-10 10:56:16 -05:00