s3: net: implement json output for ads info
commit2e00ad44aa6822817f7e988cdfa7c87fc3aa5257
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 2 Jul 2018 14:21:59 +0000 (2 16:21 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 22 Sep 2018 04:05:06 +0000 (22 06:05 +0200)
tree22a71e2db0288accfe2ccbe5c27f72a92f95edad
parentd50aafe932b79bc406501757e780ae1c7d9dddfc
s3: net: implement json output for ads info

Add the switch '--json' to 'net' to format the output as JSON.

The rationale is to supply the information in a machine-readable
fashion to complement the text version of the output which is
neither particularly well defined nor locale-safe.

The output differs from that of plain 'info' in that times are
not formatted as timestamps.

Currently affects only the 'net ads info' subcommand.

Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net.c
source3/utils/net.h
source3/utils/net_ads.c
source3/utils/wscript_build