samba-tool: Change samba-tool gpo semantics (use gpo name instead of dn)
authorAmitay Isaacs <amitay@gmail.com>
Thu, 28 Jul 2011 04:07:44 +0000 (14:07 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 Jul 2011 05:20:54 +0000 (15:20 +1000)
commitd6db6614dd3621ad2a2cff58d1d79d6fdf7345f0
treebc7b37ac10c9c33798851d5e22d50125546de678
parent43ff229b9a71959c2a583d1ff6bec3de5d873af3
samba-tool: Change samba-tool gpo semantics (use gpo name instead of dn)

Instead of using gpo dn as the key to refer to a gpo, use the gpo name
as the key.

If no URL is specified (-H option), find a writable DC and use that.

Extract a commonly used method as get_gpo_info() to find details of a GPO.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/scripting/python/samba/netcmd/gpo.py