netcmd: Small tweak to retrieving pwdProperties
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 2 May 2018 23:48:21 +0000 (11:48 +1200)
committerGarming Sam <garming@samba.org>
Fri, 11 May 2018 04:01:24 +0000 (06:01 +0200)
commit0da9dbbf5a762f0953f1860b8b04810d33557094
tree2f0af9d52efba1dd9f13f0ed89985ec684d9ecb2
parent8a105af76c3d432505e0a503cd32feb3808df59a
netcmd: Small tweak to retrieving pwdProperties

Currently the 'samba-tool domain passwordsettings' command shares a
'set' and 'show' option, but there is very little common code between
the two. The only variable that's shared is pwd_props, but there's a
separate API we can use to get this. This allows us to split the command
into a super-command in a subsequent patch.

Fixed up erroneous comments while I'm at it.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
python/samba/netcmd/domain.py