summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-01 14:31:04 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-01 16:09:58 +1100
commitc2fb3502186b06a10f3493ca25b583d3a3133608 (patch)
tree4d22d8d0805774d0587c645be1867436e34f9913 /source4/scripting/python
parent90215c53df47728ea42faee15a9391ad0625b676 (diff)
downloadsamba-c2fb3502186b06a10f3493ca25b583d3a3133608.tar.gz
samba-c2fb3502186b06a10f3493ca25b583d3a3133608.tar.bz2
samba-c2fb3502186b06a10f3493ca25b583d3a3133608.zip
s4-drs: the options attribute is optional on NTDSDSA objects
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/drs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py
index 6f5b5b8ed3..7cdb0e845a 100644
--- a/source4/scripting/python/samba/netcmd/drs.py
+++ b/source4/scripting/python/samba/netcmd/drs.py
@@ -146,7 +146,7 @@ class cmd_drs_showrepl(Command):
conn = self.samdb.search(base=ntds_dn, expression="(objectClass=nTDSConnection)")
print("%s\\%s" % (site, server))
- print("DSA Options: 0x%08x" % int(ntds[0]["options"][0]))
+ print("DSA Options: 0x%08x" % int(attr_default(ntds[0], "options", 0)))
print("DSA object GUID: %s" % self.samdb.schema_format_value("objectGUID", ntds[0]["objectGUID"][0]))
print("DSA invocationId: %s\n" % self.samdb.schema_format_value("objectGUID", ntds[0]["invocationId"][0]))