Mercurial > crates > nonstick
annotate pam-http/Justfile @ 44:50371046c61a
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 | 
| parents | ec70822cbdef | 
| children | 
| rev | line source | 
|---|---|
| 15 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 1 | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 2 all: | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 3 cargo build | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 4 | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 5 install: | 
| 34 | 6 @cargo build --release | 
| 15 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 7 sudo cp conf/http-auth /etc/pam.d/ | 
| 34 | 8 sudo cp ../target/release/libpam_http.so /lib/security/pam_http.so | 
| 15 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 9 | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 10 test: | 
| 
27730595f1ea
Adding pam-http module
 Anthony Nowell <anthony@algorithmia.com> parents: diff
changeset | 11 @just install | 
| 34 | 12 gcc -o ../target/pam_test test.c -lpam -lpam_misc | 
