diff -ur python-ldap-2.3.8.orig/Modules/constants.c python-ldap-2.3.8/Modules/constants.c
--- python-ldap-2.3.8.orig/Modules/constants.c	2009-04-30 15:03:45.000000000 +0200
+++ python-ldap-2.3.8/Modules/constants.c	2009-05-03 17:05:09.000000000 +0200
@@ -190,6 +190,9 @@
 	add_int(d,OPT_X_SASL_SECPROPS);
 	add_int(d,OPT_X_SASL_SSF_MIN);
 	add_int(d,OPT_X_SASL_SSF_MAX);
+#ifdef LDAP_OPT_X_SASL_NOCANON
+	add_int(d,OPT_X_SASL_NOCANON);
+#endif
 
 	add_int(d,DN_FORMAT_LDAP);
 	add_int(d,DN_FORMAT_LDAPV3);
diff -ur python-ldap-2.3.8.orig/Modules/options.c python-ldap-2.3.8/Modules/options.c
--- python-ldap-2.3.8.orig/Modules/options.c	2009-04-30 15:03:46.000000000 +0200
+++ python-ldap-2.3.8/Modules/options.c	2009-05-03 17:05:09.000000000 +0200
@@ -38,6 +38,9 @@
 	    return -1;
     case LDAP_OPT_REFERRALS:
     case LDAP_OPT_RESTART:
+#ifdef LDAP_OPT_X_SASL_NOCANON
+    case LDAP_OPT_X_SASL_NOCANON:
+#endif
 	    /* Truth-value options */
 	    ptr = PyObject_IsTrue(value) ? LDAP_OPT_ON : LDAP_OPT_OFF;
 	    break;
