From 00ed51a7ba69c2de50eeb32e85aaec06a0f965da Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Thu, 27 Jan 2022 13:21:40 -0500 Subject: Applied PAM patch Because PSU machines use active directory, I applied the PAM patch to allow slock to work on them. https://tools.suckless.org/slock/patches/pam_auth/ --- 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 38dbee1..c574485 100644 --- a/config.def.h +++ b/config.def.h @@ -8,6 +8,7 @@ static const char *colorname[NUMCOLS] = { [INPUT] = "#005577", /* during input */ [FAILED] = "#CC3333", /* wrong password */ [CAPS] = "red", /* CapsLock on */ + [PAM] = "#9400D3", /* waiting for PAM */ }; @@ -24,6 +25,9 @@ ResourcePref resources[] = { /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; +/* PAM service that's used for authentication */ +static const char* pam_service = "login"; + /* insert grid pattern with scale 1:1, the size can be changed with logosize */ static const int logosize = 75; /* grid width and height for right center alignment */ -- cgit v1.2.3