I can see a few people seem to have had success setting up askbot to authenticate against active directory but I'm having trouble with it, could anyone clarify how these fields should be used:
LDAP service provider name: I tried "Active Directory"
URL for LPAP service: I tried "ldap://10.23.2.1:389"
Explain how to change pwd: left blank
With these settings I get an Internal Server Error, and nothing inserted into the log.
I got it working here: https://github.com/monkut/askbot-devel
I'm not sure if this will cover all LDAP configurations, but it's working for me now. You'll need to adjust the appropriate login configuration items so that the openauth items do NOT display, and to setup the ldap configuration values in settings/EXTERNAL_KEYS.
Only three files need to be updated:
I am using the 3 files from above, but I get: NameError at /account/signin/ global name 'ldap_provider_name' is not defined
Did install pip install python-ldap
Any ideas?
Koni's answer does not solve the problem because it does local login, not ldap.
I can't find any good explanation of the use of ldap on the site. Does it work or not? (I think not)
Which version of LDAP protocol are you using? Askbot is hardcoded to work with v3. LDAP support was contributed by somebody else and we have not tested it thoroughly yet. If you have ability to test and debug - please look at the module askbot.deps.django_authopenid.backends.
Looked at the protocol again - it turns out we connect to LDAP without authentication, and if your directory does not allow anonymous lookup of data - it won't work. Also - please do check your log/askbot.log all LDAP errors are logged. Please tell me which one do you have?
On askbot.deps.django_authopenid.backends.py, on the method "ldap_authenticate", I connect to the ldap server and on the line "res = ldap_session.search_s(askbot_settings.LDAP_BASEDN, ldap.SCOPE_SUBTREE, user_filter, None)" fails throwing an exception "{'desc' : 'Bad search filter'}" It looks like its searching on a field called desc which does not exists. It should be "cn" not "desc"
enrique ( 2012-06-25 11:44:15 -0500 )editI am sorry, LDAP authentication is broken. Marking as bug.
Hi, I'm having trouble with LDAP auth. I'm geting this error:
/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/deps/django_authopenid/forms.py TIME: 2012-07-09 14:25:17,267 MSG: forms.py:clean:77 unknown provider name
There are a roadmap or schedule for next release? I get a git repo. If exist a fix I can apply and instal...
Erick Almeida ( 2012-07-10 06:32:52 -0500 )editEvgeny, I install this branch. After on LDAP logon method I canot login in the system. The form for "local" register disapear.
Erick Almeida ( 2012-07-12 15:10:43 -0500 )editCreate your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-01-24 04:11:26 -0500
Seen: 666 times
Last updated: Jul 09 '12
ldap connection authorized if the password not filled even for an unknown user
Exception with ldap signin when the password includes accented characters
Internal Server Error when trying to edit personal pro
Where are the badges in a fresh install? [fixed]
HTML Tags in titles getting eaten <fixed/>
Unknown column 'auth_user.is_approved' in 'field list' [fixed]
email for comments: link missing a href [fixed]
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.