Module: check_mk
Branch: master
Commit: 253e1571eb5b9ca4b9b2805b3fa6ff5c60f29b00
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=253e1571eb5b9c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Sep 19 17:02:15 2017 +0200
Fix: AD nearest DC discovery: Always checked only 3 DCs
---
.../patches/0013-python-ad-fix-replies-comparison.dif | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/omd/packages/python-modules/patches/0013-python-ad-fix-replies-comparison.dif
b/omd/packages/python-modules/patches/0013-python-ad-fix-replies-comparison.dif
new file mode 100644
index 0000000..9f1b94f
--- /dev/null
+++ b/omd/packages/python-modules/patches/0013-python-ad-fix-replies-comparison.dif
@@ -0,0 +1,12 @@
+diff -Nur dest/python-ad-0.9.orig/lib/ad/core/locate.py
dest/python-ad-0.9/lib/ad/core/locate.py
+--- dest/python-ad-0.9.orig/lib/ad/core/locate.py 2008-10-31 15:19:34.000000000 +0100
++++ dest/python-ad-0.9/lib/ad/core/locate.py 2017-09-19 15:03:40.363809822 +0200
+@@ -162,7 +162,7 @@
+ netlogon.query(addr, domain)
+ replies += netlogon.call()
+ self.m_logger.debug('%d replies' % len(replies))
+- if replies >= 3:
++ if len(replies) >= 3:
+ break
+ if not replies:
+ self.m_logger.error('could not detect site')