Skip to main content

PAM authentication plugin for StackStorm

PAM authentication backend allows users to authenticate against the PAM (Pluggable Authentication Modules) on the system where st2auth service is running.

Requirements

Ubuntu:

sudo apt-get -y install libpam0g

RHEL/CentOS:

sudo yum -y install pam-devel

Installation

Install this into the ST2 virtualenv with:

sudo /opt/stackstorm/st2/bin/pip install git+https://github.com/StackStorm/st2-auth-backend-pam.git@master#egg=st2_auth_backend_pam

Edit the file: /lib/systemd/system/st2auth.service. Modify it so that the stauth service runs as root.

Configuration Options

option required default description
service no login PAM service to authenticate against

Configuration Example

Please refer to the authentication section in the StackStorm documentation for basic setup concept. The following is an example of the auth section in the StackStorm configuration file for the PAM backend.

[auth]
mode = standalone
backend = pam
backend_kwargs = {"service": "login"}
...

Limitations

The python implementation of PAM does not allow authentication as the root user. When utilizing this backend, you will need to authenticate as a non-root user.

Copyright 2015 StackStorm, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: http://www.apache.org/licenses/LICENSE-2.0

By contributing you agree that these contributions are your own (or approved by your employer) and you grant a full, complete, irrevocable copyright license to all users and developers of the project, present and future, pursuant to the license of the project.

Release files for st2-auth-backend-pam 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st2-auth-backend-pam 0.4.0
File Size Uploaded
st2-auth-backend-pam-0.4.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for st2-auth-backend-pam 0.4.0
File Interpreter ABI Platform
st2_auth_backend_pam-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / st2-auth-backend-pam-0.4.0.tar.gz

Download URL st2-auth-backend-pam-0.4.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
70d1b8ee8bfbc185c3c6105f37950cc2f4294085d90e70af5679ca055f3cf1d4
BLAKE2b-256 checksum
How to use checksums
c98742380af11e4814c3cf5d985aa07dbd099a8a0aad0969f31976eadbfdab11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / st2_auth_backend_pam-0.4.0-py3-none-any.whl

Download URL st2_auth_backend_pam-0.4.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2df97ffcb0c89b7eedb4499473cdcab6afa0667921c9a33db4093c623e379476
BLAKE2b-256 checksum
How to use checksums
29296104ce02df120aadd6ddfd22f68e48d3527ef6cb387dfb22f726b0a85f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page