A simple PAM authentication module for authenticating Linux users against the AccountHub API.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
234 B

  1. #!/bin/bash
  2. # This is just an example, to show that you get the provided username
  3. # and password
  4. # We just log them, and exit with 1 (means auth is NOT ok)
  5. USER="$1"
  6. PASSWORD="$2"
  7. echo $USER:$PASSWORD >> /tmp/logchecks.txt
  8. exit 1