summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/python/samba/netcmd/drs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py
index 7cdb0e845a..404084426a 100644
--- a/source4/scripting/python/samba/netcmd/drs.py
+++ b/source4/scripting/python/samba/netcmd/drs.py
@@ -98,9 +98,12 @@ class cmd_drs_showrepl(Command):
def print_neighbour(self, n):
'''print one set of neighbour information'''
- (site, server) = drs_parse_ntds_dn(n.source_dsa_obj_dn)
print("%s" % n.naming_context_dn)
- print("\t%s\%s via RPC" % (site, server))
+ try:
+ (site, server) = drs_parse_ntds_dn(n.source_dsa_obj_dn)
+ print("\t%s\%s via RPC" % (site, server))
+ except RuntimeError:
+ print("\tNTDS DN: %s" % n.source_dsa_obj_dn)
print("\t\tDSA object GUID: %s" % n.source_dsa_obj_guid)
print("\t\tLast attempt @ %s %s" % (nttime2string(n.last_attempt), drs_errmsg(n.result_last_attempt)))
print("\t\t%u consecutive failure(s)." % n.consecutive_sync_failures)