admin login in pam backend fails

Bug #994481 reported by Bernhard M. Wiedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Bernhard M. Wiedemann

Bug Description

when having in keystone.conf
[identity]
driver = keystone.identity.backends.pam.PamIdentity

and using root as user&tenant,
nova list
will fail with
ERROR: An unexpected error prevented the server from fulfilling your request. 'is_admin' (HTTP 500)

and keystone.log shows a backtrace:
  File "/usr/lib64/python2.6/site-packages/keystone/service.py", line 273, in au
thenticate
    tenant_id=tenant_id)
  File "/usr/lib64/python2.6/site-packages/keystone/common/manager.py", line 48,
 in _wrapper
    return f(*args, **kw)
  File "/usr/lib64/python2.6/site-packages/keystone/identity/backends/pam.py", l
ine 66, in authenticate
    metadata['is_admin'] == True
KeyError: 'is_admin'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/7109

Changed in keystone:
assignee: nobody → Bernhard M. Wiedemann (ubuntubmw)
status: New → In Progress
Revision history for this message
Bernhard M. Wiedemann (ubuntubmw) wrote :

found that even with the proposed patch, root is not recognized as admin.

Devin Carlen (devcamcar)
Changed in keystone:
milestone: none → folsom-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/7109
Committed: http://github.com/openstack/keystone/commit/5ad37ebb09e7e7cdd86812c0a5df29599357c2d0
Submitter: Jenkins
Branch: master

commit 5ad37ebb09e7e7cdd86812c0a5df29599357c2d0
Author: Bernhard M. Wiedemann <email address hidden>
Date: Fri May 4 11:13:31 2012 +0200

    fix pam admin user case

    fixes bug 994481

    Change-Id: I4ba73d1ce7ea7bcd6e1d3614230b6bad7ed8e617

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/7793

Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.