From a6005da78ae1563ae4577179d1e54fff74cfe21a Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Tue, 23 Feb 2016 19:52:32 +0100 Subject: Linux pam authentication backend This backend authenticates users against pam. --- conf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 24e71b91..403f417a 100644 --- a/conf.c +++ b/conf.c @@ -244,6 +244,9 @@ static int conf_loadini(conf_t *conf, char *file) } else if (g_strcasecmp(ini->key, "authbackend") == 0) { if (g_strcasecmp(ini->value, "storage") == 0) { conf->auth_backend = NULL; + } else if (g_strcasecmp(ini->value, "pam") == 0) { + g_free(conf->auth_backend); + conf->auth_backend = g_strdup(ini->value); } else { fprintf(stderr, "Invalid %s value: %s\n", ini->key, ini->value); return 0; -- cgit v1.2.3