summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-09-04 13:03:37 +1200
committerStefan Metzmacher <metze@samba.org>2013-09-16 19:35:30 +0200
commitbbeca62ccf4943a93cf6546864439f75e6fd222c (patch)
tree370783b2d6823361848933b101b45578e11541ad /python
parentccb1beb9a30a413fcf5b85b273b789db15b6be56 (diff)
downloadsamba-bbeca62ccf4943a93cf6546864439f75e6fd222c.tar.gz
samba-bbeca62ccf4943a93cf6546864439f75e6fd222c.tar.bz2
samba-bbeca62ccf4943a93cf6546864439f75e6fd222c.zip
join.py: Show which database we failed to find the DN on (clarify local v remote)
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/join.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/join.py b/python/samba/join.py
index cad228a71a..7c14c2adb9 100644
--- a/python/samba/join.py
+++ b/python/samba/join.py
@@ -302,7 +302,7 @@ class dc_join(object):
res = ctx.samdb.search(base='CN=Partitions,%s' % ctx.config_dn, attrs=['fSMORoleOwner'],
scope=ldb.SCOPE_BASE, controls=["extended_dn:1:1"])
if not 'fSMORoleOwner' in res[0]:
- raise DCJoinException("Can't find naming master on partition DN %s" % ctx.partition_dn)
+ raise DCJoinException("Can't find naming master on partition DN %s in %s" % (ctx.partition_dn, ctx.samdb.url))
try:
master_guid = str(misc.GUID(ldb.Dn(ctx.samdb, res[0]['fSMORoleOwner'][0]).get_extended_component('GUID')))
except KeyError: