diff options
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; } |