[Moin-user] Is LDAP auth in desktop mode possible?

R.Bauer rb.proj at gmail.com
Tue Mar 1 03:43:51 EST 2011

Am 27.02.2011 09:26, schrieb jlist9:
> Hi all,
> I'm evaluating moinmoin for an internal wiki. It's meant to be a simple set up
> in company LAN so I'm thinking to run it in the desktop mode. However, I'm
> having a hard time to make LDAP auth work. I put the code in
> ldap_wikiconfig_snippet
> in moinmoin-1.9.3\wiki\config\wikiconfig.py and restarted server by
> running wikiserver.py,
> it seems to still authenticate again local users. It's not hitting the LDAP
> server at all. Then I move the code snippet to moinmoin-1.9.3\wikiconfig.py
> and restart the server, I get an error in the console (see below for the
> error message.)
> So my question is, is it possible to do LDAP auth in desktop mode, and
> if yes, what am I missing?

yes it is.

I would prefer to look at your settings before I guess what is going
wrong. Do you now still have the Desktop Edition wiki ocnfig? Where do
you have inserted the snippet? Did you changed the indenting? How did
you indent?

If you want to get quickly into contact with us, see


> Thanks,
> Jack
> 2011-02-27 00:25:16,671 ERROR werkzeug:106 Error on request:
> Traceback (most recent call last):
>   File "D:\Internet\moin-1.9.3\MoinMoin\support\werkzeug\serving.py",
> line 151, in run_wsgi
>     execute(app)
>   File "D:\Internet\moin-1.9.3\MoinMoin\support\werkzeug\serving.py",
> line 138, in execute
>     application_iter = app(environ, start_response)
>   File "D:\Internet\moin-1.9.3\MoinMoin\support\werkzeug\utils.py",
> line 248, in __call__
>     return self.app(environ, start_response)
>   File "D:\Internet\moin-1.9.3\MoinMoin\wsgiapp.py", line 281, in __call__
>     context = init(request)
>   File "D:\Internet\moin-1.9.3\MoinMoin\wsgiapp.py", line 55, in init
>     context.user = setup_user(context, context.session)
>   File "D:\Internet\moin-1.9.3\MoinMoin\wsgiapp.py", line 218, in setup_user
>     userobj = auth.handle_login(context, userobj, **params)
>   File "D:\Internet\moin-1.9.3\MoinMoin\auth\__init__.py", line 396,
> in handle_login
>     ret = authmethod.login(request, userobj, **params)
>   File "D:\Internet\moin-1.9.3\MoinMoin\auth\ldap_login.py", line 260, in login
>     "Trying to authenticate with next auth list entry." % (server, str(err)))
> UnboundLocalError: local variable 'server' referenced before assignment
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 

More information about the Moin-user mailing list