hello -- just let me know if my description below sounds like a bug.
If so, I can try to put together a decent bug report...

I am working on fleshing out the integration of a custom
authentication backend.  Basically I have a OpenLDAP directory that is
used to store user names and passwords (in conjunction with Samba --
entries are inputted using smbldap-tools).  I have the backend working
just fine -- I can get a login screen, enter an appropriate username
and password, and can confirm that the password is being authenticated
correctly through a comparison with the password stored in the LDAP
server.

Now the weird part... the next step after logging in is obviously to
redirect to another HTML page.  I was originally using PostgreSQL
(8.4, via psycopg2) while coding, and was never able to get redirected
to a new page and instead got a traceback (see below) printed to my
WWW browser.  I decided to try switching to MySQL (5.0), and did not
replicate this issue -- while running MySQL I'm redirected to a web
page after logging in.  The Django server shows a HTTP GET command for
the web page to be redirected to when MySQL is the database engine,
but I don't see this GET with PostgreSQL.

If this sounds like a bug, I'll try to submit a bug report.  I'm using
Django 1.1.1

thanks,

Paul

The traceback with PostgreSQL:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/django/core/servers/
basehttp.py", line 279, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/local/lib/python2.6/site-packages/django/core/servers/
basehttp.py", line 651, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.6/site-packages/django/core/handlers/
wsgi.py", line 245, in __call__
    response = middleware_method(request, response)
  File "/usr/local/lib/python2.6/site-packages/django/contrib/sessions/
middleware.py", line 36, in process_response
    request.session.save()
  File "/usr/local/lib/python2.6/site-packages/django/contrib/sessions/
backends/db.py", line 56, in save
    sid = transaction.savepoint()
  File "/usr/local/lib/python2.6/site-packages/django/db/
transaction.py", line 190, in savepoint
    connection._savepoint(sid)
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
__init__.py", line 62, in _savepoint
    self.cursor().execute(self.ops.savepoint_Traceback (most recent
call last):
  File "/usr/local/lib/python2.6/site-packages/django/core/servers/
basehttp.py", line 279, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/local/lib/python2.6/site-packages/django/core/servers/
basehttp.py", line 651, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.6/site-packages/django/core/handlers/
wsgi.py", line 245, in __call__
    response = middleware_method(request, response)
  File "/usr/local/lib/python2.6/site-packages/django/contrib/sessions/
middleware.py", line 36, in process_response
    request.session.save()
  File "/usr/local/lib/python2.6/site-packages/django/contrib/sessions/
backends/db.py", line 56, in save
    sid = transaction.savepoint()
  File "/usr/local/lib/python2.6/site-packages/django/db/
transaction.py", line 190, in savepoint
    connection._savepoint(sid)
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
__init__.py", line 62, in _savepoint
    self.cursor().execute(self.ops.savepoint_create_sql(sid))
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
util.py", line 19, in execute
    return self.cursor.execute(sql, params)
InternalError: current transaction is aborted, commands ignored until
end of transaction block
create_sql(sid))
  File "/usr/local/lib/python2.6/site-packages/django/db/backends/
util.py", line 19, in execute
    return self.cursor.execute(sql, params)
InternalError: current transaction is aborted, commands ignored until
end of transaction block


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to