summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-09-25 02:00:23 -0700
committerMatthieu Patou <mat@matws.net>2012-10-07 21:51:01 -0700
commite332f989091411602ef7f286ebb2f5b1462550e4 (patch)
tree3064f0e5a9629de35bfe21edcec0281a8400f7b6
parent9269870a709fb7c44f9e4eeb7024ea26dbd32d70 (diff)
downloadsamba-e332f989091411602ef7f286ebb2f5b1462550e4.tar.gz
samba-e332f989091411602ef7f286ebb2f5b1462550e4.tar.bz2
samba-e332f989091411602ef7f286ebb2f5b1462550e4.zip
devel-crackname: Print if count > 0
-rwxr-xr-xsource4/scripting/devel/crackname7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/scripting/devel/crackname b/source4/scripting/devel/crackname
index 133b853969..b6a372ea96 100755
--- a/source4/scripting/devel/crackname
+++ b/source4/scripting/devel/crackname
@@ -71,5 +71,8 @@ if __name__ == "__main__":
req.names = [names]
(result, ctr) = drs.DsCrackNames(drs_handle, 1, req)
- print ctr.array[0].status
- print ctr.array[0].result_name
+ print "# of result %d" %ctr.count
+ if ctr.count:
+ print ctr.array[0].status
+ print ctr.array[0].result_name
+ print ctr.array[0].dns_domain_name