diff src/auth/db-ldap.c @ 1086:067130d609b7 HEAD

Define OPENLDAP_ASYNC_WORKAROUND
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Feb 2003 12:59:58 +0200
parents f1401fa7ab03
children 81930fff13cf
line wrap: on
line diff
--- a/src/auth/db-ldap.c	Sun Feb 02 12:53:43 2003 +0200
+++ b/src/auth/db-ldap.c	Sun Feb 02 12:59:58 2003 +0200
@@ -14,6 +14,11 @@
 
 #include <stddef.h>
 
+/* This may block the process for two seconds, but at least it works. */
+#if LDAP_VENDOR_VERSION <= 20026
+#  define OPENLDAP_ASYNC_WORKAROUND
+#endif
+
 #define DEF(type, name) \
 	{ type, #name, offsetof(struct ldap_settings, name) }