diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-07-03 11:22:55 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-07-03 15:20:41 +1000 |
commit | 963f0df179720240a8a6072dd7960aefd654ff5a (patch) | |
tree | 5e00909d6b03a12f3c68b0a8d1a6b77382a46b19 | |
parent | 7563032acd72e5925e23fe88075e64f47bc1f86c (diff) | |
download | samba-963f0df179720240a8a6072dd7960aefd654ff5a.tar.gz samba-963f0df179720240a8a6072dd7960aefd654ff5a.tar.bz2 samba-963f0df179720240a8a6072dd7960aefd654ff5a.zip |
samba-tool: gpo: Correct the attribute name from gPlink to gPLink
Thanks to Denis Bonnenfant <denis.bonnenfant@diderot.org> for patch.
-rw-r--r-- | source4/scripting/python/samba/netcmd/gpo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py index 8482e73fbd..318cc30419 100644 --- a/source4/scripting/python/samba/netcmd/gpo.py +++ b/source4/scripting/python/samba/netcmd/gpo.py @@ -458,11 +458,11 @@ class cmd_getlink(Command): try: msg = self.samdb.search(base=container_dn, scope=ldb.SCOPE_BASE, expression="(objectClass=*)", - attrs=['gPlink'])[0] + attrs=['gPLink'])[0] except Exception, e: raise CommandError("Could not find Container DN %s (%s)" % container_dn, e) - if 'gPLink' in msg: + if msg['gPLink']: self.outf.write("GPO(s) linked to DN %s\n" % container_dn) gplist = parse_gplink(msg['gPLink'][0]) for g in gplist: @@ -523,7 +523,7 @@ class cmd_setlink(Command): try: msg = self.samdb.search(base=container_dn, scope=ldb.SCOPE_BASE, expression="(objectClass=*)", - attrs=['gPlink'])[0] + attrs=['gPLink'])[0] except Exception, e: raise CommandError("Could not find container DN %s" % container_dn, e) |