]> git.sur5r.net Git - openldap/commitdiff
didn't compile without cyrus-sasl
authorJong Hyuk Choi <jongchoi@openldap.org>
Thu, 25 Sep 2003 01:00:34 +0000 (01:00 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Thu, 25 Sep 2003 01:00:34 +0000 (01:00 +0000)
libraries/libldap/sasl.c

index 27da363e0c9195f53ad3537dfd2bf4553f892124..bd59ff58b2950697bcc72bdcc76a1d3b6349a4e0 100644 (file)
@@ -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 );