]> git.sur5r.net Git - openldap/commitdiff
More for #5812, ifdef NOCANON option
authorHoward Chu <hyc@openldap.org>
Fri, 6 Feb 2009 00:01:38 +0000 (00:01 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 6 Feb 2009 00:01:38 +0000 (00:01 +0000)
clients/tools/common.c

index c411e4480b40e71e61350b2d3266d9ef52f1f940..cb23ef41c2c272ea55431d85f28d3e4cdecbcc23 100644 (file)
@@ -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 )
                {