diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 27da363e0c..bd59ff58b2 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -449,9 +449,12 @@ ldap_sasl_interactive_bind_s( goto done; } else #endif + +#ifdef HAVE_CYRUS_SASL if( mechs == NULL || *mechs == '\0' ) { mechs = ld->ld_options.ldo_def_sasl_mech; } +#endif if( mechs == NULL || *mechs == '\0' ) { rc = ldap_pvt_sasl_getmechs( ld, &smechs );