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. --- auth.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'auth.c') diff --git a/auth.c b/auth.c index e83a683f..9717acc1 100644 --- a/auth.c +++ b/auth.c @@ -1,10 +1,20 @@ #define BITLBEE_CORE #include "bitlbee.h" +#ifdef WITH_PAM +extern auth_backend_t auth_pam; +#endif + GList *auth_init(const char *backend) { GList *gl = NULL; int ok = backend ? 0 : 1; +#ifdef WITH_PAM + gl = g_list_append(gl, &auth_pam); + if (backend && !strcmp(backend, "pam")) { + ok = 1; + } +#endif return ok ? gl : NULL; } -- cgit v1.2.3