smbstatus: add a connections dictionary
authorJule Anger <janger@samba.org>
Thu, 31 Mar 2022 08:20:20 +0000 (10:20 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Aug 2022 12:56:28 +0000 (12:56 +0000)
commit138befe439152b6eaf990f5c33676b373c5dac6e
treeaa189b947df08ce515c94931a1b4bbfb6b10dac2
parent05362a2799573ed314bbeb907dab11829732babe
smbstatus: add a connections dictionary

Adds an empty json dictionary under the key "tcons" and adds foreach
connection a dictionary with information to the shares dictionary.

Only print to stdout, if json_output is not set.

Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/status.c
source3/utils/status_json.c
source3/utils/status_json.h
source3/utils/status_json_dummy.c