blob: ae93e2e028b0c169f517b50a95528acb59a90610 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- modules/lookup_ldap.c.old 2010-05-28 13:47:33.888723271 +0200
+++ modules/lookup_ldap.c 2010-05-28 13:58:32.048972838 +0200
@@ -141,9 +141,13 @@
{
int rv;
+#ifdef WITH_SASL
if (ctxt->auth_required == LDAP_AUTH_USESIMPLE)
rv = ldap_simple_bind_s(ldap, ctxt->user, ctxt->secret);
else if (ctxt->version == 2)
+#else
+ if (ctxt->version == 2)
+#endif
rv = ldap_simple_bind_s(ldap, ctxt->base, NULL);
else
rv = ldap_simple_bind_s(ldap, NULL, NULL);
|