aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ldap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 991204fd0..61813bb2b 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -200,6 +200,11 @@ static dynafunc DynaGetFunction(const char *name)
* compilers! */
*(void**) (&func) = dlsym(libldap, name);
}
+#ifdef DL_LBER_FILE
+ if (!func && liblber) {
+ *(void**) (&func) = dlsym(liblber, name);
+ }
+#endif
#elif defined(WIN32)
if (libldap) {
func = (dynafunc)GetProcAddress((HINSTANCE)libldap, name);