Issue 6339 - ldapsearch -V doesn't exist after version info
Summary: ldapsearch -V doesn't exist after version info
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: documentation (show other issues)
Version: 2.4.19
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 22:32 UTC by Quanah Gibson-Mount
Modified: 2017-06-01 22:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2009-10-19 22:32:14 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.19
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.29.239)


Executing ldapsearch -V to get the version information correctly prints it, but
then proceeds to execute a search.
Comment 1 Quanah Gibson-Mount 2009-10-19 22:36:12 UTC
--On Monday, October 19, 2009 10:32 PM +0000 openldap-its@OpenLDAP.org 
wrote:


s/exist/exit

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 2 ando@openldap.org 2009-10-30 08:44:26 UTC
quanah@zimbra.com wrote:
> Full_Name: Quanah Gibson-Mount
> Version: 2.4.19
> OS: 
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (75.111.29.239)
> 
> 
> Executing ldapsearch -V to get the version information correctly prints it, but
> then proceeds to execute a search.

Perhaps it's not clearly documented (no "-V" in man page, unclear 
message in help) but you need to use -VV to exit after printing version.

p.

Comment 3 Quanah Gibson-Mount 2009-10-30 14:57:54 UTC
--On Friday, October 30, 2009 9:44 AM +0100 Pierangelo Masarati 
<masarati@aero.polimi.it> wrote:

> quanah@zimbra.com wrote:
>> Full_Name: Quanah Gibson-Mount
>> Version: 2.4.19
>> OS:
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (75.111.29.239)
>>
>>
>> Executing ldapsearch -V to get the version information correctly prints
>> it, but then proceeds to execute a search.
>
> Perhaps it's not clearly documented (no "-V" in man page, unclear message
> in help) but you need to use -VV to exit after printing version.


That's... bizarre.  Even slapd doesn't behave that way.  Nor any other 
program comes immediately to mind.

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 4 Quanah Gibson-Mount 2009-11-02 21:34:43 UTC
changed notes
moved from Incoming to Documentation
Comment 5 Matheus Morais 2010-08-31 04:44:45 UTC
Hi there,

<quote> That's... bizarre. Even slapd doesn't behave that way. Nor any other
program comes immediately to mind. </quote>

Even sounds like an strange behave, as Quanah said, this information should
be included on ldapsearch man page IMHO.

I believe that the following patch could close this BUG:

--- openldap/doc/man/man1/ldapsearch.1.orig    2010-08-31 01:25:23.000000000
-0300
+++ openldap/doc/man/man1/ldapsearch.1    2010-08-31 01:37:50.000000000
-0300
@@ -7,6 +7,8 @@
 .SH SYNOPSIS
 .B ldapsearch
 [\c
+.BR \-V [ V ]]
+[\c
 .BR \-n ]
 [\c
 .BR \-c ]
@@ -107,6 +109,11 @@
 Option \fI\-L\fP controls the format of the output.
 .SH OPTIONS
 .TP
+.BR \-V [ V ]
+Prints the ldapsearch version and proceeds with the search.
+.B \-VV
+Prints the ldapsearch version and quit.
+.TP
 .B \-n
 Show what would be done, but don't actually perform the search.  Useful for
 debugging in conjunction with \fB\-v\fP.

Please review it.

Thanks,

Matheus Morais
Comment 6 Matheus Morais 2011-08-09 21:25:28 UTC
This seems to be a little old but I had attached the patch to close this
issue and now I realize that I should provide it in a Uniform Resource
Locator (URL) just as http://www.openldap.org/devel/contributing.html
 explains.

So here it goes:

http://xsun.eti.br/openldap/ldapsearch1_man_page.patch

Sorry for this mistake.

Thanks.
Matheus Morais

On Tue, Aug 31, 2010 at 1:44 AM, Matheus Morais <matheus.morais@gmail.com>wrote:

> Hi there,
>
> <quote> That's... bizarre. Even slapd doesn't behave that way. Nor any
> other program comes immediately to mind. </quote>
>
> Even sounds like an strange behave, as Quanah said, this information should
> be included on ldapsearch man page IMHO.
>
> I believe that the following patch could close this BUG:
>
> --- openldap/doc/man/man1/ldapsearch.1.orig    2010-08-31
> 01:25:23.000000000 -0300
> +++ openldap/doc/man/man1/ldapsearch.1    2010-08-31 01:37:50.000000000
> -0300
> @@ -7,6 +7,8 @@
>  .SH SYNOPSIS
>  .B ldapsearch
>  [\c
> +.BR \-V [ V ]]
> +[\c
>  .BR \-n ]
>  [\c
>  .BR \-c ]
> @@ -107,6 +109,11 @@
>  Option \fI\-L\fP controls the format of the output.
>  .SH OPTIONS
>  .TP
> +.BR \-V [ V ]
> +Prints the ldapsearch version and proceeds with the search.
> +.B \-VV
> +Prints the ldapsearch version and quit.
> +.TP
>  .B \-n
>  Show what would be done, but don't actually perform the search.  Useful
> for
>  debugging in conjunction with \fB\-v\fP.
>
> Please review it.
>
> Thanks,
>
> Matheus Morais
>
Comment 7 Gavin Henry 2012-07-04 22:23:03 UTC
Do we want to document this or change behavior?
Comment 8 Gavin Henry 2012-07-18 11:14:14 UTC
Do we want to document this or change behavior?
Comment 9 Quanah Gibson-Mount 2017-03-29 19:37:34 UTC
changed notes
changed state Open to Release
Comment 10 OpenLDAP project 2017-06-01 22:11:21 UTC
Fixed in master
Fixed in RE25
Fixed in RE24 (2.4.45)
Some fixes for this were also done in ITS#7177
Comment 11 Quanah Gibson-Mount 2017-06-01 22:11:21 UTC
changed notes
changed state Release to Closed