Re: Issue 3759 in reviewboard: Error Authenticating with Active Directory

2015-02-19 Thread reviewboard

Updates:
Status: SetupIssue

Comment #3 on issue 3759 by trowb...@gmail.com: Error Authenticating with  
Active Directory

https://code.google.com/p/reviewboard/issues/detail?id=3759

(No comment was entered for this change.)

--
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.


Re: Issue 3759 in reviewboard: Error Authenticating with Active Directory

2015-02-19 Thread reviewboard


Comment #2 on issue 3759 by physicss...@gmail.com: Error Authenticating  
with Active Directory

https://code.google.com/p/reviewboard/issues/detail?id=3759

I suspect that this was an issue with a python-ldap version mismatch. Not  
sure what I changed but this is working now, and as far as I can tell, it  
must have been fixed already by the time I provided some of the above  
debugging info.


Please close.

--
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.


Re: Issue 3759 in reviewboard: Error Authenticating with Active Directory

2015-02-06 Thread reviewboard


Comment #1 on issue 3759 by physicss...@gmail.com: Error Authenticating  
with Active Directory

https://code.google.com/p/reviewboard/issues/detail?id=3759

Also forgot to mention, as far as reproducing my client environment, I have  
implemented the fix for Issue 3729 for string representation inserting 'b's  
before a few strings.


--
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.


Issue 3759 in reviewboard: Error Authenticating with Active Directory

2015-02-05 Thread reviewboard

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 "", line 1, in 
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


,
POST: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.wsg