Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3759 by physicss...@gmail.com: Error Authenticating with Active
Directory
https://code.google.com/p/reviewboard/issues/detail?id=3759
What version are you running?
I am running ReviewBoard 2.0.12
What's the URL of the page containing the problem?
http://codereview/account/login/
What steps will reproduce the problem?
1. Setup Active Directory access, specifying only a Domain Name and a
Domain Controller and leaving other Active Directory options unchecked.
2. Navigate to /account/login/
3. Type in a user name and password.
What is the expected output? What do you see instead?
If an incorrect username/password combo is provided, the expected message
of "Please enter a correct username and password. Note that both fields may
be case-sensitive." is shown.
However, if a valid username/password combo is provided, "Something broke!
(Error 500)" is produced. I got an email from the RB server with a stack
trace, which is provided below.
What operating system are you using? What browser?
I am currently using Windows 8.1 Pro, and Google Chrome Version
40.0.2214.94 m
Please provide any additional information below.
This issue is likely a dupe of Issue 3403. Here's some relevant info that
wasn't provided in that ticket.
Here is my python-ldap version:
python-ldap
2.4.10-1 amd64
Filter format within ldap:
import ldap
from ldap import filter_format
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name filter_format
from ldap.filter import filter_format
Stack trace for original error listed below:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py",
line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/views/decorators/debug.py",
line 75, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/utils/decorators.py",
line 99, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/views/decorators/cache.py",
line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/contrib/auth/views.py",
line 36, in login
if form.is_valid():
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/forms/forms.py",
line 129, in is_valid
return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/forms/forms.py",
line 121, in errors
self.full_clean()
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/forms/forms.py",
line 274, in full_clean
self._clean_form()
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/forms/forms.py",
line 300, in _clean_form
self.cleaned_data = self.clean()
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/contrib/auth/forms.py",
line 189, in clean
password=password)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/contrib/auth/__init__.py",
line 49, in authenticate
user = backend.authenticate(**credentials)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.12-py2.7.egg/reviewboard/accounts/backends.py",
line 676, in authenticate
filter_format('(&(objectClass=user)(sAMAccountName=%s))',
NameError: global name 'filter_format' is not defined
<WSGIRequest
path:/account/login/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'username': [u'********************'],
u'csrfmiddlewaretoken': [u'********************'], u'password':
[u'********************'], u'next': [u'********************']}>,
COOKIES:{'csrftoken': 'WIVKOsSTnPHkxDVaBc4j6jvkclS3h0JZ'},
META:{'CONTENT_LENGTH': '115',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
u'CSRF_COOKIE': u'WIVKOsSTnPHkxDVaBc4j6jvkclS3h0JZ',
'DOCUMENT_ROOT': '/var/www/cr/htdocs',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=WIVKOsSTnPHkxDVaBc4j6jvkclS3h0JZ',
'HTTP_HOST': 'codereview',
'HTTP_ORIGIN': 'http://codereview',
'HTTP_REFERER': 'http://codereview/account/login/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36',
u'LOCAL_SITE': None,
'PATH_INFO': u'/account/login/',
'PATH_TRANSLATED': '/var/www/cr/htdocs/reviewboard.wsgi/account/login/',
'QUERY_STRING': '',
'REMOTE_ADDR': '10.105.10.194',
'REMOTE_PORT': '54490',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/account/login/',
'SCRIPT_FILENAME': '/var/www/cr/htdocs/reviewboard.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '10.105.0.107',
'SERVER_ADMIN': '[no address given]',
'SERVER_NAME': 'codereview',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.22 (Ubuntu) Server at codereview
Port 80</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)',
'mod_wsgi.application_group': 'cr|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.enable_sendfile': '0',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': '',
'mod_wsgi.queue_start': '1423176932409139',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 4),
'wsgi.errors': <mod_wsgi.Log object at 0x7f03329c0af0>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter
object at 0x7f03142f4a80>,
'wsgi.input': <mod_wsgi.Input object at 0x7f0318021c70>,
'wsgi.multiprocess': True,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.