Skip to content

Commit

Permalink
updated README on compiling to use the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jsaathof committed Aug 23, 2023
1 parent c5800bf commit ba7d31f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ba7d31f

Please sign in to comment.