Bug 202204 - Enhancement request to pass authentication keys to ntpdate in startup script
Summary: Enhancement request to pass authentication keys to ntpdate in startup script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: ntp
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Miroslav Lichvar
QA Contact: Brian Brock
URL:
Whiteboard:
: 245410 (view as bug list)
Depends On:
Blocks: 240141
TreeView+ depends on / blocked
 
Reported: 2006-08-11 15:20 UTC by Colin.Simpson
Modified: 2018-10-19 20:33 UTC (History)
2 users (show)

Fixed In Version: RHBA-2008-0678
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 19:34:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0678 0 normal SHIPPED_LIVE ntp bug fix and enhancement update 2008-07-23 15:44:06 UTC

Description Colin.Simpson 2006-08-11 15:20:15 UTC
Description of problem:
Our ntp servers only work with authentication keys. This stops ntpdate working
properly on startup. 

We therefore have to manually hack /etc/init.d/ntpd to allow ntpdate to work
properly on startup. 

There is no way to handle this situation in the present startup script which
simply has:

/usr/sbin/ntpdate $dropstr -s -b $tickers 2>/dev/null >/dev/null

Could either the startup scripts examine the $ntpconf file for not just the
server's IP but also maybe the optional key directive afterwards and pass this
to ntpdate.

Or a nastier way to simply allow an extra parameter to be passed from
/etc/sysconfig/ntpd

eg

/etc/sysconfig/ntpd:
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"

# Set to 'yes' to sync hw clock after successful ntpdate.
SYNC_HWCLOCK=no

NTPDATEOPTIONS="-a 11 -k /etc/ntp/keys"

/etc/init.d/ntpd:
/usr/sbin/ntpdate $dropstr $NTPDATEOPTIONS -s -b $tickers

Comment 1 Miroslav Lichvar 2006-08-14 11:02:44 UTC
Yes, this feature would be useful and I plan to implement it in devel. However,
it is not likely to be addressed in forthcoming updates for RHEL4. The primary
objectives of update releases are to enable new hardware platform support and to
resolve critical defects. If this issue is important to you, please contact Red
Hat Support.

Comment 2 Colin.Simpson 2006-08-14 11:43:33 UTC
This issue does affect us but we can work around it in a grotty way, I'll ask
support if they'll consider it.


Comment 3 Miroslav Lichvar 2007-06-25 12:22:13 UTC
*** Bug 245410 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2008-07-24 19:34:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0678.html


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