From: Howard Chu Date: Wed, 28 Aug 2002 08:33:24 +0000 (+0000) Subject: Added no-op sasl_client_auth if SASL_VERSION_MAJOR < 2. X-Git-Tag: NO_SLAP_OP_BLOCKS~1140 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c4f89c6f7dfe05ca6d4dce326fe6d5e6d5c4d97;p=openldap Added no-op sasl_client_auth if SASL_VERSION_MAJOR < 2. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 7481bfb85f..f82aa9bc71 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1140,6 +1140,10 @@ int slap_sasl_init( void ) Debug( LDAP_DEBUG_ANY, "sasl_server_init failed\n", 0, 0, 0 ); #endif +#if SASL_VERSION_MAJOR < 2 + /* A no-op used to make sure we linked with Cyrus 1.5 */ + sasl_client_auth( NULL, NULL, NULL, 0, NULL, NULL ); +#endif return -1; }