From: Howard Chu Date: Fri, 6 Feb 2009 00:01:38 +0000 (+0000) Subject: More for #5812, ifdef NOCANON option X-Git-Tag: ACLCHECK_0~872 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0189fb08287a9558f674a1bab1437632b426797b;p=openldap More for #5812, ifdef NOCANON option --- diff --git a/clients/tools/common.c b/clients/tools/common.c index c411e4480b..cb23ef41c2 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -1287,6 +1287,7 @@ dnssrv_free:; exit( EXIT_FAILURE ); } +#ifdef HAVE_CYRUS_SASL /* canon */ if( ldap_set_option( ld, LDAP_OPT_X_SASL_NOCANON, nocanon ? LDAP_OPT_ON : LDAP_OPT_OFF ) != LDAP_OPT_SUCCESS ) @@ -1295,6 +1296,7 @@ dnssrv_free:; nocanon ? "on" : "off" ); exit( EXIT_FAILURE ); } +#endif if( ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &protocol ) != LDAP_OPT_SUCCESS ) {