Module: check_mk
Branch: master
Commit: 30a371ce01e35d8885ff2351dc1be6053a335d90
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=30a371ce01e35d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 16 14:13:11 2013 +0100
ldap: Removed sys.path hack for dist-packages paths (Fixed in OMD now)
---
web/plugins/userdb/ldap.py | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 4c4dbe0..bc5469a 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -27,20 +27,6 @@
import config, defaults
import time, copy
-# For some reason mod_python is missing /usr/lib/python2.7/dist-packages
-# in sys.path. Therefor the ldap module can not be found at least on current
-# ubuntu and sles releases.
-# There seem to be some initialization problems with mod_pythan as the sys.path
-# is correct when excuting python from the command line as site user.
-# Try to workaround the problem now...
-
-import site, sys
-try:
- sys.path.extend(site.getsitepackages())
-except: # Workaround, python 2.6 ( debian squeeze )
- sys.path.extend(["/usr/local/lib/python2.6/dist-packages"])
- sys.path.extend(["/usr/lib/python2.6/dist-packages"])
-
try:
# docs:
http://www.python-ldap.org/doc/html/index.html
import ldap