No description
- C++ 64.4%
- C 16%
- Makefile 13.7%
- CMake 5.9%
| .forgejo/workflows | ||
| project/src | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitpod.yml | ||
| .version | ||
| Dockerfile.build | ||
| Dockerfile.test | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
Clone
Clone the repository:
git clone https://git.fried-air.com/harry/sram-pam-weblogin.git
This repository makes use of Docker. so please make sure you have Docker installed and running on your system
Build
make
make build
make packages
make test
Test
By running make test you will see following instructions:
*** Package is installed in image: 'tester'
*** file: sram_pam_weblogin.conf:
{
"url": "https://sram.surf.nl/pam-weblogin",
"token": "<put in your sram pam-weblogin token>",
"attribute": "username",
"retries": "3",
"cache_duration": "30"
}
*** file: sram_pam_weblogin.pam:
auth required sram_pam_weblogin.so /etc/sram_pam_weblogin.conf
*** Edit sram_pam_weblogin.conf and put in your values...
*** Do your tests via:
$ docker run -ti --rm --volume ${PWD}/sram_pam_weblogin.pam:/etc/pam.d/test --volume ${PWD}/sram_pam_weblogin.conf:/etc/sram_pam_weblogin.conf tester bash
*** Example:
$ useradd -m testuser
$ su - testuser
$ pamtester test testuser authenticate