Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 546583 - Executables from freeradius package have incomplete usage help and manpages
Executables from freeradius package have incomplete usage help and manpages
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: freeradius2 (Show other bugs)
5.4
All Linux
low Severity low
: rc
: ---
Assigned To: John Dennis
Aleš Mareček
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-11 05:27 EST by Karel Srot
Modified: 2012-11-19 10:24 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:35:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Document all command args & add missing man pages (33.07 KB, patch)
2011-09-17 11:01 EDT, John Dennis
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0196 normal SHIPPED_LIVE freeradius2 bug fix and enhancement update 2012-02-20 09:54:08 EST

  None (edit)
Description Karel Srot 2009-12-11 05:27:37 EST
Description of problem:
Executables from freeradius package have incomplete usage help and manpages

/usr/bin/radeapclient
---------------------
most of the program options (-c,-r,-t,-S,-q,-s,-v) are not documented in manpage, option "-i" has different explanation in radeapclient --help and manpage, option "-y" is mentioned only in manpage.

/usr/bin/radlast
----------------
program options -R,-n,-num,-o,-t,-x are not documented in manpage

/usr/bin/radrelay
-----------------
program options -R,-e,-h,-t are not documented in manpage

/usr/bin/radsqlrelay
--------------------
program options -?,-P,-f are not documented in manpage

/usr/bin/radtest
----------------
option -d not mentioned in radtest --help

/usr/bin/radwho
---------------
option -h mentioned but not explaned in radwho --help, this option is not mentioned in manpage at all

/usr/bin/radzap
---------------
option -x not documented in manpage

/usr/sbin/radiusd
-----------------
options -c,-n mentioned but not explained in radiusd --help. Options -b,-g are mentioned in manpage only

/usr/bin/rlm_dbm_cat, /usr/bin/rlm_dbm_parser, /usr/bin/smbencrypt, /usr/sbin/check-radiusd-config, /usr/sbin/checkrad
------------------------------------------------------------------
do not have manpage

Version-Release number of selected component (if applicable):
freeradius-1.1.3-1.6.el5.x86_64


How reproducible:
always


Steps to Reproduce:
compare  "executable --help" and "man executable"
Comment 1 John Dennis 2011-05-04 17:32:23 EDT
moving this bz to the current freeradius2 package because these will not be fixed for the old 1.1.3 version, however some things have changed

radrelay is now deprecated

radtest now has -d documented in --help

radwho -h option not in option list for getopt, should print usage

radiusd issues now resolved

check-radiusd-config is no longer installed

otherwise the remaining issues in comment #1 are still in effect as far as I can tell after a quick review. Will edit the list in comment #1 so it applies to freeradius2 in the next comment.
Comment 2 John Dennis 2011-05-04 18:01:01 EDT
Description of problem:
Executables from freeradius package have incomplete usage help and manpages

/usr/bin/radeapclient
---------------------
most of the program options (-c,-r,-t,-S,-q,-s,-v) are not documented in
manpage, option "-i" has different explanation in radeapclient --help and
manpage, option "-y" is mentioned only in manpage.

/usr/bin/radlast
----------------
program options -R,-n,-num,-o,-t,-x are not documented in manpage

/usr/bin/radsqlrelay
--------------------
program options -?,-P,-f are not documented in manpage

/usr/bin/radwho
---------------
-h option not in option list for getopt, should print usage

/usr/bin/radzap
---------------
option -x not documented in manpage

Missing man pages
-----------------
No manual entry for checkrad
No manual entry for radconf2xml
No manual entry for radcrypt
No manual entry for radsniff
No manual entry for rlm_dbm_cat
No manual entry for rlm_dbm_parser
No manual entry for smbencrypt
Comment 3 John Dennis 2011-05-04 18:08:58 EDT
Entered as upstream bug
https://bugs.freeradius.org/bugzilla/show_bug.cgi?id=154
Comment 4 John Dennis 2011-09-17 11:01:07 EDT
Created attachment 523715 [details]
Document all command args & add missing man pages

Note: This patch has been submitted upstream. It is expected to be in the next release, 2.1.12 which is the upstream release targeted for the RHEL 5.8 rebase. Therefore it is expected we will not need to use this patch in our RPM, it should be in the upstream tarball.

-------------------------------------------------------------------------------

Go through every installed command and verify:
  * There exists a man page for the command, if not create one
  * For every command line arg in each command:
    - Assure the arg appears in the synopis section of the man page
    - Assure the arg is documented in the options section of the man page
    - Assure the arg is documented in the "usage" emitted by the command

In addition to the above this patch also does:

* Clean up captitalization & the use of terminating periods.
* Removed superfluous unused l option from the getopt format string
  of radwho
* Remove rlm_ippool_tool.pod, superseded by rlm_ippool_tool.8 man page

The follow new man pages were added:

man/man1/smbencrypt.1
man/man5/checkrad.5
man/man5/rlm_dbm_cat.5
man/man5/rlm_dbm_parse.5
man/man8/radconf2xml.8
man/man8/radcrypt.8
man/man8/radsniff.8
man/man8/rlm_ippool_tool.8
Comment 7 John Dennis 2012-01-13 12:35:09 EST
If I'm reading this correctly you discovered two issues:

1) typo in the man page for rlm_dbm_parser (man page actually installed as rlm_dbm_parse)

2) no command line args listed in the man page for radlast. The radlast script doesn't actually parse any command line args. In fact it doesn't do much at all except call /usr/bin/last on radwtmp and passing any additional arguments to /usr/bin/last. This is clearly documented in the man page. Does this mean we need to copy the contents of the /usr/bin/last man page into the radlast man page? I don't think that's a good idea, /usr/bin/last may be different on different systems (including non-linux that upstream supports). I think it's fine to just reference the /usr/bin/last man page as is currently done.

What would you like to do? I can fix the typo on rlm_dbm_parse name and respin the packages, but it's not clear to me this is an issue worth consuming QE time on with new packages, but I'm happy to do it. I'll also get upstream to fix the typo.

I'm not inclined to fix issue 2 because I don't see it as an actual problem, I more inclined to believe it's a problem with the test but I'm open to an alternative interpretation.

Let me know what you would like me to do.
Comment 8 Aleš Mareček 2012-01-13 14:22:37 EST
Hi John,
I think we should fix the man-typo issue. I'm OK with statement of "unfixed" second issue. I believe it was reported after some summarize testing and not all scripts need to have man pages (for example some helper scripts which aren't for standalone use, etc...)
Comment 9 John Dennis 2012-01-15 10:56:00 EST
I prepared a fix but I can't check it in because only blockers are allowed at this point. IMHO having the rlm_dbm_parer man page spelled as rlm_dbm_parse is not a blocker.
Comment 13 errata-xmlrpc 2012-02-21 00:35:58 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0196.html

Note You need to log in before you can comment on or make changes to this bug.