From f3730d6554797991346aea17873c218f3e127eaa Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Fri, 6 Feb 2009 00:05:03 +0000
Subject: [PATCH] ITS#5812

---
 clients/tools/common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/tools/common.c b/clients/tools/common.c
index e0a6c0c8cc..38f8441520 100644
--- a/clients/tools/common.c
+++ b/clients/tools/common.c
@@ -1263,6 +1263,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 )
@@ -1271,6 +1272,7 @@ dnssrv_free:;
 				nocanon ? "on" : "off" );
 			exit( EXIT_FAILURE );
 		}
+#endif
 		if( ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &protocol )
 			!= LDAP_OPT_SUCCESS )
 		{
-- 
GitLab