]> git.sur5r.net Git - openldap/commitdiff
Added no-op sasl_client_auth if SASL_VERSION_MAJOR < 2.
authorHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:33:24 +0000 (08:33 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Aug 2002 08:33:24 +0000 (08:33 +0000)
servers/slapd/sasl.c

index 7481bfb85f6a2ab87dfca0065dab71532e63b610..f82aa9bc717e32df8a1e973f4dc67e3878705196 100644 (file)
@@ -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;
        }