From 50bb49039b264ac599ad1ddee2be86cfc7cb68ce Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Tue, 23 Feb 2016 20:14:57 +0100 Subject: ldap authentication backend We only support the openldap scheme for now, with users that are posixAccounts. Moreover, as the plugin cannot be configured directly, you must configure libldap correctly in /etc/openldap/ldap.conf --- auth.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'auth.c') diff --git a/auth.c b/auth.c index 9717acc1..5a9d8bb8 100644 --- a/auth.c +++ b/auth.c @@ -4,6 +4,9 @@ #ifdef WITH_PAM extern auth_backend_t auth_pam; #endif +#ifdef WITH_LDAP +extern auth_backend_t auth_ldap; +#endif GList *auth_init(const char *backend) { @@ -15,6 +18,12 @@ GList *auth_init(const char *backend) ok = 1; } #endif +#ifdef WITH_LDAP + gl = g_list_append(gl, &auth_ldap); + if (backend && !strcmp(backend, "ldap")) { + ok = 1; + } +#endif return ok ? gl : NULL; } -- cgit v1.2.3