summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-01-17 17:40:44 -0500
committerMatt Hunter <m@lfurio.us>2026-01-17 17:55:12 -0500
commitb4708e0dbdf30b7fb41e457540bd98aaeb0e3aac (patch)
tree5074069b30e88e24c9033e4a789ac46bc7e76076 /config.def.h
parent2cfb65439abde79140e729010391f84415de9182 (diff)
downloadslock-debian.tar.gz
slock-debian.zip
patch: pam authdebian
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.
Diffstat (limited to '')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
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";