From d810ad758965521945d96c838c70b1ff5269a9f5 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Mon, 19 Aug 2024 07:33:06 +0000 Subject: [PATCH] apr_ldap: Make the sasl callback disappear when OpenLDAP is not used. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1920017 13f79535-47bb-0310-9956-ffa450edef68 --- ldap/apr_ldap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldap/apr_ldap.c b/ldap/apr_ldap.c index a066b31a83..1e2fc82f6b 100644 --- a/ldap/apr_ldap.c +++ b/ldap/apr_ldap.c @@ -1782,6 +1782,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_poll(apr_pool_t *pool, +#if APR_HAS_OPENLDAP_LDAPSDK typedef struct apr_ldap_bind_ctx_t { apr_ldap_t *ld; @@ -1832,6 +1833,8 @@ static int bind_sasl_interact(LDAP *ld, unsigned flags, void *ctx, void *in) return LDAP_SUCCESS; } +#endif + /** * APR LDAP bind function