diff -ruN openldap-2.4.15.orig/clients/tools/ldapsearch.c openldap-2.4.15.-ttt/clients/tools/ldapsearch.c --- openldap-2.4.15.orig/clients/tools/ldapsearch.c 2009-01-22 04:00:43.000000000 +0400 +++ openldap-2.4.15.-ttt/clients/tools/ldapsearch.c 2009-05-27 12:57:54.000000000 +0500 @@ -147,6 +147,8 @@ fprintf( stderr, _(" -S attr sort the results by attribute `attr'\n")); fprintf( stderr, _(" -t write binary values to files in temporary directory\n")); fprintf( stderr, _(" -tt write all values to files in temporary directory\n")); + fprintf( stderr, _(" -ttt same as -tt, but put filenames verbatim (violate LDIF line\n" + " wrapping requirement). Don't wrap long filenames.\n")); fprintf( stderr, _(" -T path write files to directory specified by path (default: %s)\n"), def_tmpdir); fprintf( stderr, _(" -u include User Friendly entry names in the output\n")); fprintf( stderr, _(" -z limit size limit (in entries, or \"none\" or \"max\") for search\n")); @@ -1525,7 +1527,10 @@ &tmpfname[strlen(tmpdir) + sizeof(LDAP_DIRSEP) - 1] ); urlize( url ); - tool_write_ldif( LDIF_PUT_URL, bv.bv_val, url, strlen( url )); + if (vals2tmp < 3) + tool_write_ldif( LDIF_PUT_URL, bv.bv_val, url, strlen( url )); + else + fprintf (stdout, "%s%s%s\n", bv.bv_val, ":< ", url); } else { tool_write_ldif( LDIF_PUT_VALUE, bv.bv_val,