samba-tool visualize ntdsconn: add --importldif option
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 7 Mar 2018 00:55:08 +0000 (13:55 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 May 2018 23:57:15 +0000 (01:57 +0200)
commitbdc0681eaebab7bc930206c2d2db68d7ca132ad3
tree38596848e68061345cf49e4ac0439b876f33a8ee
parent07302fe03724b98e39f0beca5710b534bcb1582c
samba-tool visualize ntdsconn: add --importldif option

This visualizes the NTDSConnections in an LDIF file exported via
`samba_kcc --exportldif`. This functionality is already available in a
roundabout way -- you can use `samba_kcc --import_ldif`, and use the
DB that generates. This just shortens the process.

The ldif import/export feature is useful for analysing AD networks
offsite without exposing too much sensitive data.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/visualize.py
python/samba/tests/samba_tool/visualize.py