Skip to content

abbaspour/libpam-auth0

Repository files navigation

PAM powered by Auth0

Build Status

Download & Install Binary

Pre-built binaries available at https://bintray.com/amin/libpam-auth0/libpam-auth0

dpkg -i libpam-auth0-0.2.0.deb 

Build Steps

  1. Clone
git clone [email protected]:abbaspour/libpam-auth0.git
  1. Prepare auth0.conf

  2. Prepare extrausers You need passwd and shadow files in extrausrs/ folder

Sample passwd file:

[email protected]:x:1005:100:null:/tmp:/bin/bash

Sample shadow file:

[email protected]:*:18052:0:99999:7:::

A good script to create shadow and passwd files from your Auth0 DB connection is: mk-passwd.sh

  1. Build Server
make sshd
  1. (Optional) SSH into server and tail logs
make bash
tail -F /var/log/auth0-pam.log
  1. Prep .env file This file has sample username and password. Sample .env file
TEST_USER='[email protected]'
TEST_PASS='[email protected]'
  1. Run ssh
make ssh
enter password