Still the same. Here's the traceback, if you need more let me know.

Environment:

Request Method: POST
Request URL: http://mailscanner.domain.com/accounts/login/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['baruwa.fixups',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'baruwa.auth',
 'baruwa.accounts',
 'baruwa.messages',
 'baruwa.lists',
 'baruwa.reports',
 'baruwa.status',
 'baruwa.config',
 'djcelery',
 'south']
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/usr/local/lib/python2.6/dist-packages/baruwa-1.1.2-py2.6.egg/baruwa/accounts/views.py"
 in local_login
  63.         if form.is_valid():
File "/usr/lib/pymodules/python2.6/django/forms/forms.py" in is_valid
  121.         return self.is_bound and not bool(self.errors)
File "/usr/lib/pymodules/python2.6/django/forms/forms.py" in _get_errors
  112.             self.full_clean()
File "/usr/lib/pymodules/python2.6/django/forms/forms.py" in full_clean
  268.         self._clean_form()
File "/usr/lib/pymodules/python2.6/django/forms/forms.py" in _clean_form
  296.             self.cleaned_data = self.clean()
File "/usr/lib/pymodules/python2.6/django/contrib/auth/forms.py" in clean
  85.             self.user_cache = authenticate(username=username, 
password=password)
File "/usr/lib/pymodules/python2.6/django/contrib/auth/__init__.py" in 
authenticate
  50.             user = backend.authenticate(**credentials)
File 
"/usr/local/lib/python2.6/dist-packages/baruwa-1.1.2-py2.6.egg/baruwa/auth/ad.py"
 in authenticate
  297.                 " %s. No Group information 
available.\nAD_Auth_Domain:%s\tAD_Admin_Group:%s\tAD_User_Group:%s" % 
(username,adset.ad_auth_domain,adset.ad_admin_group,adset.ad_user_group))

Exception Type: AttributeError at /accounts/login/
Exception Value: 'NoneType' object has no attribute 'ad_auth_domain'


-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] 
Namens Morgan, Jeffrey R
Verzonden: donderdag 11 april 2013 17:15
Aan: 'Baruwa users list'
Onderwerp: Re: [Baruwa] question concerning AD authentication

Let's try again:

https://github.com/liveaverage/baruwa/blob/114396536b1f3a569e10dcf4747608f6edfb6531/src/baruwa/auth/ad.py

There were a couple of issues I overlooked: removing original assignment to 
adset and passing 'None' to ADUser where a variable was needed. Just ad.py 
needs updating (again)

_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to