netcmd: Include num-members in 'samba-tool group list --verbose'
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 18 Oct 2018 03:59:24 +0000 (16:59 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 30 Oct 2018 23:30:16 +0000 (00:30 +0100)
commitca570bd4827aa8f61ceb137fbe748ac2f7929c44
treebbfa29aca20cc1e723a3b7558c24f4175636ef65
parenta9a65adb023bde5567152101a7244968284b57d9
netcmd: Include num-members in 'samba-tool group list --verbose'

This adds an easy way for users to see (via samba-tool) how many members
are in various groups, without querying the members for each individual
group.

For example, you could pipe this output to grep to check for groups with
zero or one members (i.e. historic groups that may no longer make
sense).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/group.py