summaryrefslogtreecommitdiff
path: root/src-repo/test.sh
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2026-03-11 14:15:45 +0100
committerDennis Kobert <dennis@kobert.dev>2026-03-11 14:16:07 +0100
commita9a74679fbec07cf158f2295513e3d4c4adc2666 (patch)
tree5dcac28283ef53c2869bdedb9badff0896900bb6 /src-repo/test.sh
parent116bd5a46adc7e9caa27f58b19cafe68d3e085f0 (diff)
Port pam-any from pam-bindings to nonstick crateHEADmain
The pam-bindings crate has a critical bug where pam_try! returns PAM_SUCCESS on error in release builds (anowell/pam-rs#16), causing authentication to always succeed. This replaces it with nonstick and a custom pam_client module with raw PAM FFI for thread-safe conversation forwarding.
Diffstat (limited to 'src-repo/test.sh')
-rw-r--r--src-repo/test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src-repo/test.sh b/src-repo/test.sh
new file mode 100644
index 0000000..f27a9cf
--- /dev/null
+++ b/src-repo/test.sh
@@ -0,0 +1,5 @@
+IP=192.168.124.164
+
+cargo build
+scp ./pam-any root@$IP:/etc/pam.d
+scp ./target/debug/libpam_any.so root@$IP:/lib64/security \ No newline at end of file