1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/rpcclient
Robin Hack bcbdc74b26 rpcclient: Fix and enhance rpcclient output
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11085

When rpcclient is called like:
$ rpcclient -c "getdata . Osversion"
at end of output is added one nonsense line
OsVersion: Osversion:

This patch removes this line and adds more human friendly ouput:
OsMajor: num
OsMinor: num
OsBuild: num

for OsVersion query.

For OsVersionEx two more lines are added:
OsMajor: num
OsMinor: num
OsBuild: num
ServicePackMajor: num
ServicePackMinor: num

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2015-02-17 15:41:10 +01:00
..
cmd_dfs.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
cmd_drsuapi.c idl:drsuapi: Manage all possible lengths of drsuapi_DsBindInfo 2014-07-07 05:22:33 +02:00
cmd_dssetup.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
cmd_echo.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
cmd_epmapper.c s3:rpcclient: make use of dcerpc_binding_set_abstract_syntax() in cmd_epmapper.c 2014-02-13 11:54:16 +01:00
cmd_eventlog.c s3-rpcclient: Fix cmd_eventlog_loginfo() null pointer passing. 2013-01-02 12:35:37 +01:00
cmd_fss.c fsrvp: define FSRVP_E_SHADOWCOPYSET_ID_MISMATCH 2014-11-14 23:27:04 +01:00
cmd_lsarpc.c s3:rpcclient: remove unused code from cmd_lsa_get_username() 2014-01-16 16:22:52 +01:00
cmd_netlogon.c s3-rpc_client: return info3 in rpccli_netlogon_password_logon(). 2014-07-15 16:00:40 +02:00
cmd_ntsvcs.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
cmd_samr.c CVE-2013-4408:s3:Ensure LookupRids() replies arrays are range checked. 2013-12-09 09:00:41 +01:00
cmd_shutdown.c Revert "s3: Do not directly reference the ndr_table_* in rpcclient" 2009-11-08 19:43:47 +01:00
cmd_spoolss.c rpcclient: Fix and enhance rpcclient output 2015-02-17 15:41:10 +01:00
cmd_srvsvc.c Fix bug #10100 - rpcclient crashes when sending the 'netshareenum 502' command 2013-08-21 17:30:33 +02:00
cmd_test.c s3:rpcclient: make use of rpcclient_cli_state 2013-10-17 08:48:52 +13:00
cmd_winreg.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
cmd_witness.c s3:rpcclient: fix build without HAVE_IPV6 2014-03-31 22:52:12 +02:00
cmd_wkssvc.c s3-rpcclient: pass struct ndr_interface_table down 2012-01-18 16:23:24 +01:00
rpcclient.c s3-rpcclient: Make sure current_nt_hash is initialized. 2014-10-31 03:47:40 +01:00
rpcclient.h s3:rpcclient: add rpcclient_netlogon_creds 2014-01-07 12:47:11 +01:00