No description
  • C++ 64.4%
  • C 16%
  • Makefile 13.7%
  • CMake 5.9%
Find a file
UpdatedUserName 8d6bef0463
Some checks failed
CI / build (push) Successful in 21s
CI / release (push) Failing after 3s
fix README
2026-03-27 16:20:24 +01:00
.forgejo/workflows fix ci 2026-03-27 16:16:32 +01:00
project/src wip 2026-03-26 21:14:04 +00:00
.gitignore make use of defaults 2024-04-24 09:00:07 +02:00
.gitlab-ci.yml add packages build 2024-01-19 12:41:31 +00:00
.gitpod.yml cleanup code 2023-02-16 21:27:57 +00:00
.version add packages build 2024-01-19 12:41:31 +00:00
Dockerfile.build wip 2023-02-15 15:24:29 +00:00
Dockerfile.test wip 2023-02-16 22:49:53 +00:00
LICENSE Add LICENSE 2023-02-18 14:05:15 +00:00
Makefile wip 2026-03-26 21:14:04 +00:00
README.md fix README 2026-03-27 16:20:24 +01:00

CI

Latest release

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