From 73bbc86ce297b50246d6d54eb3e87d556331560a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 30 Jan 2022 19:57:02 +0100 Subject: feat: apply Pam patch --- config.def.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index cda44a8..67db9a9 100644 --- a/config.def.h +++ b/config.def.h @@ -1,17 +1,21 @@ /* user and group to drop privileges to */ -static const char *user = "nobody"; -static const char *group = "nobody"; +static const char *user = "aktersnurra"; +static const char *group = "aktersnurra"; static const char *colorname[NUMCOLS] = { [BACKGROUND] = "black", /* after initialization */ [INIT] = "black", /* after initialization */ [INPUT] = "#005577", /* during input */ [FAILED] = "#CC3333", /* wrong password */ + [PAM] = "#9400D3", /* waiting for PAM */ }; /* 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"; + /* time in seconds to cancel lock with mouse movement */ static const int timetocancel = 4; @@ -47,6 +51,5 @@ ResourcePref resources[] = { { "color0", STRING, &colorname[INIT] }, { "color4", STRING, &colorname[INPUT] }, { "color1", STRING, &colorname[FAILED] }, - { "color3", STRING, &colorname[CAPS] }, }; -- cgit v1.2.3-70-g09d2