How to make openstack_auth the default authentication backend for django admin? [closed]

asked 2013-05-02 03:33:54 -0500

neumerance gravatar image

updated 2013-06-11 10:16:37 -0500

fifieldt gravatar image

I was trying to make openstack_auth as a default authentication backend for django admin.

Is it possible to do that, I have implemented the login auth in my django template but when i try to login in django admin it gives me An error occurred authenticating. Please try again later.

I was trying to follow this tuts. http://django-openstack-auth.readthedocs.org/en/latest/installation.html#installation

Says here, it should be keystone_auth

 AUTHENTICATION_BACKENDS = ('keystone_auth.backend.KeystoneBackend',)

and if i did that, it gives me an error no module name keystone_auth

 AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)

and it work. But when i try to login in it says KeystoneAuthException at /admin/

 An error occurred authenticating. Please try again later.

my urls setting sets to url(r'^', include('openstack_auth.urls')), as well because keystone_auth spits out a no module named keystone_auth error.

here is my apache logs

[Mon May 06 01:55:33 2013] [error] DEBUG:openstack_auth.backend:Beginning user authentication for user "admin".
[Mon May 06 01:55:33 2013] [error] DEBUG:openstack_auth.backend:Authentication completed for user "admin".
[Mon May 06 01:55:33 2013] [error] INFO:openstack_auth.forms:Login successful for user "admin".
[Mon May 06 01:55:33 2013] [error]
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2014-04-15 14:25:22.586983

Comments

What does it say in the Apache error logs?

jpichon gravatar imagejpichon ( 2013-05-02 04:54:24 -0500 )edit

I have updated my question thanks :)

neumerance gravatar imageneumerance ( 2013-05-05 23:38:09 -0500 )edit

what does it say in the keystone logs?

fifieldt gravatar imagefifieldt ( 2013-07-19 17:12:14 -0500 )edit

Have you found an answer for this question? please share your conclusions.

smaffulli gravatar imagesmaffulli ( 2013-07-26 16:38:53 -0500 )edit

Closing issue, as it has been without response for 9 months.

rbowen gravatar imagerbowen ( 2014-04-15 14:25:13 -0500 )edit