From ba7d31fa63e56b825ff342a3e27b66f8dab8a330 Mon Sep 17 00:00:00 2001 From: Jurriaan Saathof Date: Wed, 23 Aug 2023 14:57:19 +0200 Subject: [PATCH] updated README on compiling to use the Makefile --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b49565..f1d5c06 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,18 @@ This project requires the [very good JSON parser from nlohmann](https://github.com/nlohmann/json). Put the `json.hpp` file from the `single_include` folder in `include`. It also requires the following libraries: `libcurl4-openssl-dev`, `libssl-dev`, `libpam0g-dev` +Compilation requires g++ and make. Installation also uses strip to remove debug symbols from the module. Compile with: - g++ -Wall -fPIC -g -Iinclude -c /path/to/src/pam_privacyidea.cpp -o obj/(Debug/Release)/src/pam_privacyidea.o - g++ -Wall -fPIC -g -Iinclude -c /path/to/src/PrivacyIDEA.cpp -o obj/(Debug/Release)/src/PrivacyIDEA.o - g++ -shared obj/(Debug/Release)/src/pam_privacyidea.o obj/(Debug/Release)/src/PrivacyIDEA.o -o bin/(Debug/Release)/pam_privacyidea.so -Wno-undef -lcurl + make + +Install and remove with: + + make install + make uninstall + +This will install the PAM module in `/lib/security` or `/lib64/security` ## Configuration The following values can be appended to the pam config file line that references this module: