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.
Falk Werner a24dfd0fb5
added missing newline
1 year ago
..
etc/pam.d add example of PAM authenticator 1 year ago
src use stdin to provide authentication token to authenticator rather than command line option 1 year ago
.gitignore added missing newline 1 year ago
CMakeLists.txt add example of PAM authenticator 1 year ago
README.md add example of PAM authenticator 1 year ago

README.md

webfuse PAM authenticator

This directory contains an example of a webfuse authenticator using PAM.

The authenticator uses username and password for authentication. Since webfuse only provides a token, username and password are encoded as follows:

TOKEN := base64 ( USERNAME ":" PASSWORD )

Example:

USERNAME := "user"
PASSWORD := "secret"
TOKEN    := base64 ( "user:secret" ) = "XNlcjpzZWNyZXQ="

The utilities webfuse_pam_token_encode and webfuse_pam_token_decode can be used to encode and decode tokens.

Build

cmake -b build
cmake build

Dependencies

  • libpam
  • libb64

Notes

  • in order to make the authenticator work, read access to /etc/shadow is needed