diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 3bf768c88a..dd47ecbb03 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -836,7 +836,8 @@ main( int argc, char **argv ) } if (ldif < 2 ) { - printf( "#\n# filter%s: %s\n# requesting: ", + printf( "#\n# LDAPv%d\n# filter%s: %s\n# requesting: ", + version, infile != NULL ? " pattern" : "", filtpattern );