[Moin-user] LDAP on Windows?
Tobin Cataldo
tcataldo at bham.lib.al.us
Wed Sep 2 17:32:32 EDT 2009
Do you have python-ldap module (http://pypi.python.org/pypi/python-ldap/) ?
Rick Vanderveer wrote:
> This is what I hope is a silly one.
>
> I'm trying to change authentication on my wiki to be based on LDAP.
> I've configured and pasted in the snippet into my farmconfig.py file.
> When I try to go to the site, it immediately displays "No module named
> ldap". Am I missing something fundamental here?
>
> -Rick
>
>
>
> Here's the trace:
>
> --> -->
> ImportError
> No module named ldap
>
> If you want to report a bug, please save this page and attach it to
> your bug report.
>
> Show debugging information Report bug Visit MoinMoin wiki
> Traceback
> A problem occurred in a Python script. Here is the sequence of
> function calls leading up to the error, in the order they occurred.
>
> D:\Python26\lib\site-packages\MoinMoin\request\request_wsgi.py in
> __init__ (self=<MoinMoin.request.request_wsgi.Request object at
> 0x01BDC390>, env={'COMSPEC': r'C:\WINNT\system32\cmd.exe',
> 'DOCUMENT_ROOT': 'C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1',
> 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
> 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE':
> 'en-US', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION':
> 'keep-alive', 'HTTP_HOST': 'wikibeta.cognitivearts.com',
> 'HTTP_REFERER': 'http://wikibeta.cognitivearts.com/bigclient/home',
> ...})
>
> 33
> 34 self._setup_vars_from_std_env(env)
> 35 RequestBase.__init__(self, {})
> 36
> 37 except Exception, err:
> global RequestBase = <class 'MoinMoin.request.RequestBase'>
> RequestBase.__init__ = <unbound method RequestBase.__init__> self =
> <MoinMoin.request.request_wsgi.Request object at 0x01BDC390>
> D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in __init__
> (self=<MoinMoin.request.request_wsgi.Request object at 0x01BDC390>,
> properties={}, given_config=None)
>
> 164 self.__dict__.update(properties)
> 165 try:
> 166 self._load_multi_cfg(given_config)
> 167 except error.NoConfigMatchedError:
> 168 self.makeForbidden(404, 'No wiki configuration
> matching the URL found!\r\n')
> self = <MoinMoin.request.request_wsgi.Request object at 0x01BDC390>
> self._load_multi_cfg = <bound method Request._load_multi_cfg of
> <MoinMo...quest.request_wsgi.Request object at 0x01BDC390>>
> given_config = None
> D:\Python26\lib\site-packages\MoinMoin\request\__init__.py in
> _load_multi_cfg (self=<MoinMoin.request.request_wsgi.Request object at
> 0x01BDC390>, given_config=None)
>
> 360 if given_config is None:
> 361 self.clock.start('load_multi_cfg')
> 362 self.cfg = multiconfig.getConfig(self.url)
> 363 self.clock.stop('load_multi_cfg')
> 364 else:
> self = <MoinMoin.request.request_wsgi.Request object at 0x01BDC390>
> self.cfg undefined global multiconfig = <module
> 'MoinMoin.config.multiconfig' from
> 'D:\P...b\site-packages\MoinMoin\config\multiconfig.pyc'>
> multiconfig.getConfig = <function getConfig at 0x01BD7FB0> self.url =
> 'wikibeta.cognitivearts.com/bigclient/home'
> D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in
> getConfig (url='wikibeta.cognitivearts.com/bigclient/home')
>
> 185 @return: config object for specific wiki
> 186 """
> 187 cfgName = _getConfigName(url)
> 188 try:
> 189 cfg = _config_cache[cfgName]
> cfgName undefined global _getConfigName = <function _getConfigName at
> 0x01BD7F70> url = 'wikibeta.cognitivearts.com/bigclient/home'
> D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in
> _getConfigName (url='wikibeta.cognitivearts.com/bigclient/home')
>
> 167 def _getConfigName(url):
> 168 """ Return config name for url or raise """
> 169 for name, regex in _url_re_list():
> 170 match = regex.match(url)
> 171 if match:
> name undefined regex undefined global _url_re_list = <function
> _url_re_list at 0x01BD7EF0>
> D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in _url_re_list ()
>
> 78 if _url_re_cache is None:
> 79 try:
> 80 farmconfig, _farmconfig_mtime =
> _importConfigModule('farmconfig')
> 81 except ImportError, err:
> 82 if 'farmconfig' in str(err):
> farmconfig undefined global _farmconfig_mtime = None global
> _importConfigModule = <function _importConfigModule at 0x01BD7EB0>
> D:\Python26\lib\site-packages\MoinMoin\config\multiconfig.py in
> _importConfigModule (name='farmconfig')
>
> 44 """
> 45 try:
> 46 module = __import__(name, globals(), {})
> 47 mtime = os.path.getmtime(module.__file__)
> 48 except ImportError:
> module undefined builtin __import__ = <built-in function __import__>
> name = 'farmconfig' builtin globals = <built-in function globals>
> d:\moin\farmconfig.py in ()
>
> 104 # from the DefaultConfig, except those we explicitely define different.
> 105
> 106 class FarmConfig(DefaultConfig):
> 107
> 108 # Critical setup ---------------------------------------------------
> FarmConfig undefined DefaultConfig = None
> d:\moin\farmconfig.py in FarmConfig ()
>
> 166
> 167 from MoinMoin.auth import MoinAuth
> 168 from MoinMoin.auth.ldap_login import LDAPAuth
> 169 ldap_authenticator1 = LDAPAuth(
> 170 # the values shown below are the DEFAULT values (you
> may remove them if you are happy with them),
> MoinMoin undefined LDAPAuth undefined
> D:\Python26\lib\site-packages\MoinMoin\auth\ldap_login.py in ()
>
> 22
> 23 try:
> 24 import ldap
> 25 except ImportError, err:
> 26 logging.error("You need to have python-ldap installed
> (%s)." % str(err))
> ldap undefined
> ImportError
> No module named ldap
>
> args = ('No module named ldap',)
> message = 'No module named ldap'
> System Details
> Date: Wed, 02 Sep 2009 21:19:18 +0000
> Platform: win32 (nt)
> Python: Python 2.6.2 (C:\Program Files\Apache Software
> Foundation\Apache2.2\bin\httpd.exe)
> MoinMoin: Release 1.8.2 (release)
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>
>
More information about the Moin-user
mailing list