I installed askbot 0.7.50 on Suse SLES11 SP3.
I configured it to allow (only) login via LDAP following the optional-modules/ldap-authentication documentation.
When I run it from Apache I can login as local admin user (admin is a local user, not from LDAP).
Also when I stop Apache and run askbot with "python manage.py runserver" LDAP login works absolutely fine.
However when I run askbot via Apache and then try to login with an LDAP account, AskBot crashes. I will attach the crash logs (from running AskBot in debug mode) and Apache config file below.
If anybody has a clue what could be the cause of this, I would be glad to hear.
BdbQuit at /account/signin/
No exception supplied
Request Method: POST
Request URL:
http://<my_url>/account/signin/
Django Version: 1.5.11
Exception
Type: BdbQuit
Exception Location:
/usr/lib64/python2.6/bdb.py in
dispatch_line, line 65
Python
Executable: /usr/bin/python Python
Version: 2.6.9 Python Path: </my_url>
Server time: Mon, 23 Feb 2015
08:20:23 -0600
Environment:
Request Method: POST Request URL:
http://<my_url>/account/signin/</my_url>
Django Version: 1.5.11 Python Version:
2.6.9 Installed Applications: ('longerusername',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'django.contrib.messages',
'compressor', 'askbot',
'askbot.deps.django_authopenid',
'south', 'askbot.deps.livesettings',
'keyedcache', 'robots',
'django_countries', 'djcelery',
'djkombu', 'followit', 'tinymce',
'group_messaging') Installed
Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')
Traceback:
File
"/usr/local/lib64/python2.6/site-packages/Django-1.5.11-py2.6.egg/django/core/handlers/base.py"
in get_response
113. response = callback(request, callback_args, *callback_kwargs)
File "/usr/local/lib64/python2.6/site-packages/Django-1.5.11-py2.6.egg/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, *kwargs)
File
"/usr/local/lib64/python2.6/site-packages/askbot-0.7.50-py2.6.egg/askbot/deps/django_authopenid/views.py"
in signin
471. method = 'ldap'
File
"/usr/local/lib64/python2.6/site-packages/Django-1.5.11-py2.6.egg/django/contrib/auth/__init__.py" in authenticate
60. user = backend.authenticate(*credentials)
File
"/usr/local/lib64/python2.6/site-packages/askbot-0.7.50-py2.6.egg/askbot/deps/django_authopenid/backends.py"
in authenticate
204. user_info = ldap_authenticate(username, password)
File
"/usr/local/lib64/python2.6/site-packages/askbot-0.7.50-py2.6.egg/askbot/deps/django_authopenid/ldap_auth.py"
in ldap_authenticate_default
61. try:
File "/usr/local/lib64/python2.6/site-packages/askbot-0.7.50-py2.6.egg/askbot/deps/django_authopenid/ldap_auth.py"
in ldap_authenticate_default
61. try:
File "/usr/lib64/python2.6/bdb.py" in
trace_dispatch
46. return self.dispatch_line(frame)
File
"/usr/lib64/python2.6/bdb.py" in
dispatch_line
65. if self.quitting: raise BdbQuit
Exception Type: BdbQuit at
/account/signin/ Exception Value:
Request information
GET No GET data
POST Variable Value
username u'ldap_username'
password ...