From: Kurt Zeilenga Date: Sat, 5 Dec 1998 02:33:05 +0000 (+0000) Subject: Disable string translation in slurpd. Imported from rel eng 1.1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e408608bca082a19ec23ea3c5d6d0141f7e58128;p=thirdparty%2Fopenldap.git Disable string translation in slurpd. Imported from rel eng 1.1 --- diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index 08253921cd..f1c90ad6c2 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -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.