]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Disable string translation in slurpd. Imported from rel eng 1.1
authorKurt Zeilenga <kurt@openldap.org>
Sat, 5 Dec 1998 02:33:05 +0000 (02:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 5 Dec 1998 02:33:05 +0000 (02:33 +0000)
servers/slurpd/ldap_op.c

index 08253921cd891a768349e7c94b8242acc29f85bf..f1c90ad6c20998b9943ac4a52289d484d2de67a8 100644 (file)
@@ -622,6 +622,15 @@ do_bind(
        return( BIND_ERR_OPEN );
     }
 
+    /*
+     * Disable string translation if enabled by default.
+     * The replication log is written in the internal format,
+     * so this would do another translation, breaking havoc.
+     */
+#if defined( STR_TRANSLATION ) && defined( LDAP_DEFAULT_CHARSET )
+        ri->ri_ldp->ld_lberoptions &= ~LBER_TRANSLATE_STRINGS;
+#endif /* STR_TRANSLATION && LDAP_DEFAULT_CHARSET */
+
     /*
      * Set ldap library options to (1) not follow referrals, and 
      * (2) restart the select() system call.