summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-29 09:31:12 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-03 08:46:45 +0100
commitdde7eb0d82e9b980c9b08fb4590b7e77bda0c76b (patch)
treefe787b23b66c8ea46612e1e098d1a1c7cf395100 /source4/scripting
parenta1a525e2a9b0bc20e3e06695fbcbdf0d172839a1 (diff)
downloadsamba-dde7eb0d82e9b980c9b08fb4590b7e77bda0c76b.tar.gz
samba-dde7eb0d82e9b980c9b08fb4590b7e77bda0c76b.tar.bz2
samba-dde7eb0d82e9b980c9b08fb4590b7e77bda0c76b.zip
s4:samba-tool/gpo: use 'gPCFileSysPath' when deleting gpos
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/gpo.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py
index 5169085635..26b2e8c561 100644
--- a/source4/scripting/python/samba/netcmd/gpo.py
+++ b/source4/scripting/python/samba/netcmd/gpo.py
@@ -1048,13 +1048,11 @@ class cmd_del(Command):
# Check if valid GPO
try:
- get_gpo_info(self.samdb, gpo=gpo)[0]
+ msg = get_gpo_info(self.samdb, gpo=gpo)[0]
+ unc_path = msg['gPCFileSysPath'][0]
except Exception:
raise CommandError("GPO '%s' does not exist" % gpo)
- realm = self.lp.get('realm')
- unc_path = "\\\\%s\\sysvol\\%s\\Policies\\%s" % (realm, realm, gpo)
-
# Connect to DC over SMB
[dom_name, service, sharepath] = parse_unc(unc_path)
try: