From b4708e0dbdf30b7fb41e457540bd98aaeb0e3aac Mon Sep 17 00:00:00 2001 From: Matt Hunter Date: Sat, 17 Jan 2026 17:40:44 -0500 Subject: patch: pam auth Replaces shadow support with PAM authentication support. Change variable pam_service in config.def.h to the corresponding PAM service. The default configuration is for ArchLinux's login service. --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index c99dbf5..ba37a59 100644 --- a/config.def.h +++ b/config.def.h @@ -7,6 +7,7 @@ static const char *colorname[NUMCOLS] = { [INPUT] = "#005577", /* during input */ [FAILED] = "#CC3333", /* wrong password */ [CAPS] = "red", /* CapsLock on */ + [PAM] = "#9400D3", /* waiting for PAM */ }; /* treat a cleared input like a wrong password (color) */ @@ -17,3 +18,6 @@ static const int controlkeyclear = 1; /* time in seconds before the monitor shuts down */ static const int monitortime = 7; + +/* PAM service that's used for authentication */ +static const char* pam_service = "login"; -- cgit v1.2.3