Skip to content

Use PAM to integrate to OpenStack keystone

Notifications You must be signed in to change notification settings

robaato/pam-keystone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

pam-keystone

This module allows authenticating against keystone as a pam module. E.g. to allow nginx or other system services to use keystone users.

It does not create an NSS module, so its for auth only. Please remember to create a user in NSS beforehand, otherwise auth will fail (the symptom is - replacement of pam.authtok with garbage containg INCORRECT as user was not found in NSS).

To use, copy keystone-auth.py to /lib/security, chmod 555 it. Then add a line like

auth sufficient pam_python.so keystone-auth.py

usually right before:

@include common-auth 

in a pam service. You may need to change the AUTH url in the lib (I didn't make it an argument).

Example config. Place in /etc/pam.d/keystone:

# PAM configuration for the Secure Shell service

auth sufficient pam_python.so keystone-auth.py

auth	requisite			pam_deny.so

account sufficient pam_permit.so
session sufficient pam_permit.so

About

Use PAM to integrate to OpenStack keystone

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%