git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90215c5
)
s4-drs: the options attribute is optional on NTDSDSA objects
author
Andrew Tridgell
<tridge@samba.org>
Wed, 1 Dec 2010 03:31:04 +0000
(14:31 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 1 Dec 2010 05:09:58 +0000
(16:09 +1100)
source4/scripting/python/samba/netcmd/drs.py
patch
|
blob
|
history
diff --git
a/source4/scripting/python/samba/netcmd/drs.py
b/source4/scripting/python/samba/netcmd/drs.py
index 6f5b5b8ed3f7904da7f0e6e5a672a800becd86fd..7cdb0e845a5bc99be4e1c56671986a4789c845d3 100644
(file)
--- 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]))