aboutsummaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c9
1 files changed, 9 insertions, 0 deletions
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;
}