view README.md @ 44:50371046c61a default tip

Add support for pam_get_authtok and minor cleanups. This change adds the pam_get_authtok function for PAM modules, as well as performing a few cleanups: - Pattern match in a few more places. - Pull out string-copying into a function. - Format and run clippy. - Replace outdated PAM doc links with man7.org pages.
author Paul Fisher <paul@pfish.zone>
date Sat, 08 Mar 2025 19:29:46 -0500 (4 weeks ago)
parents 53efbcff805d
children
line wrap: on
line source
pam-rs
========

Rust interface to the pluggable authentication module framework (PAM).

The goal of this library is to provide a type-safe API that can be used to
interact with PAM.  The library is incomplete - currently it supports a subset
of functions for use in a pam authentication module.  A pam module is a shared
library that is invoked to authenticate a user, or to perform other functions.

## 🌐 [pam-http](pam-http)

An example of using pam-rs by performing HTTP basic access auth to authenticate users.

## 🍻 [pam-sober](pam-sober)

If you aren't sober enough for basic math, you can't login!

### Credits

The contents of this repo are heavily borrowed from:

- [tozny/rust-pam](https://github.com/tozny/rust-pam)
- [ndenev/pam_groupmap](https://github.com/ndenev/pam_groupmap)
- [beatgammit/pam-http](https://github.com/beatgammit/pam-http)