PAM support for slock.
This commit is contained in:
parent
07ca0d53bc
commit
8c660ea2d0
7 changed files with 237 additions and 18 deletions
|
@ -1,17 +1,21 @@
|
|||
/* user and group to drop privileges to */
|
||||
static const char *user = "nobody";
|
||||
static const char *group = "nogroup";
|
||||
static const char *user = "f";
|
||||
static const char *group = "users";
|
||||
|
||||
static const char *colorname[NUMCOLS] = {
|
||||
[BACKGROUND] = "black", /* after initialization */
|
||||
[INIT] = "#2d2d2d", /* after initialization */
|
||||
[INPUT] = "#005577", /* during input */
|
||||
[FAILED] = "#CC3333", /* wrong password */
|
||||
[PAM] = "#005577", /* 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";
|
||||
|
||||
/* insert grid pattern with scale 1:1, the size can be changed with logosize */
|
||||
static const int logosize = 75;
|
||||
static const int logow = 12; /* grid width and height for right center alignment*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue