Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 546583

Summary: Executables from freeradius package have incomplete usage help and manpages
Product: Red Hat Enterprise Linux 5 Reporter: Karel Srot <ksrot>
Component: freeradius2Assignee: John Dennis <jdennis>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: low Docs Contact:
Priority: low    
Version: 5.4CC: amarecek, dpal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:35:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Document all command args & add missing man pages none

Description Karel Srot 2009-12-11 10:27:37 UTC
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 21:32:23 UTC
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 22:01:01 UTC
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 22:08:58 UTC
Entered as upstream bug
https://bugs.freeradius.org/bugzilla/show_bug.cgi?id=154

Comment 4 John Dennis 2011-09-17 15:01:07 UTC
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 17:35:09 UTC
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 19:22:37 UTC
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 15:56:00 UTC
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 05:35:58 UTC
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