Added no-op sasl_client_auth if SASL_VERSION_MAJOR < 2.

This commit is contained in:
Howard Chu 2002-08-28 08:33:24 +00:00
parent 341ba76238
commit 9c4f89c6f7

View 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;
}