samba-tool: gpo: Use utility function dc_url() to set the connection url
commit0365df93e61b44cbdd7270c48495a6b4ac251677
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2012 04:17:48 +0000 (3 14:17 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2012 05:20:42 +0000 (3 15:20 +1000)
tree12a5e11ff0c46e3557081df35873ef5773e8d94c
parenta9c4336733c6e76c129c71901500fb7d305ad45f
samba-tool: gpo: Use utility function dc_url() to set the connection url

In create and fetch subcommands, we also need to know DC hostname. So first
find a DC and use DC hostname to construct connection url. If ldap:// url is
specified with -H, then use that to construct DC hostname.
source4/scripting/python/samba/netcmd/gpo.py