[ntp:questions] Authentication problem
Dennis Hilberg, Jr.
timekeeper at dennishilberg.com.invalid
Wed Feb 27 05:17:19 UTC 2008
Harlan Stenn wrote:
> I think this is because you have not respecified the keyid.
That solves the issue just fine. I'll just have to remember to say 'keyid 1'
whenever I start ntpdc.
> Try giving the 'keyid' command after you restart ntpdc to be sure.
It does say no keyid defined.
> I'm not sure why you were not asked for it though...
I found that odd. When I issue the addserver command, I get prompted for the
keyid, but not when I issue the unconfig command. That's the problem.
> And as Dave as pointed out, nobody has volunteered to maintain ntpdc for
> quite a while now, and the new config parsing code does not have an
> "unconfig" command yet (near as I can remember).
Sorry, I'm not a very accomplished programmer. Otherwise I'd be glad to help
out, time permitting.
> I am aware of two obvious solutions to this problem (as well as many others)
> but since I mention these two solutions Frequently I'll refrain from
> repeating them at this time.
Like I mentioned, specifying 'keyid 1' right after starting ntpdc solves the
problem. Although I'd be interested in other solutions, or at least point me
to where you've talked about them before. I use ntpdc regularly for
adding/removing servers and fudging refclock values, etc. It's useful as I
don't have to restart the server all the time.
Not that it matters, as no one is maintaining ntpdc currently, but I think I
found a bug while messing with it:
saturn:$ ntpdc
ntpdc> keyid
no keyid defined
ntpdc> unconfig 63.240.161.99
MD5 Password:
***Permission denied
ntpdc> keyid
keyid is 134682920
It seems to randomly generate a keyid and specify it for use, and then
prompt for a password for that keyid even though it doesn't exist. And if I
do it again:
saturn:$ ntpdc
ntpdc> keyid
no keyid defined
ntpdc> unconfig 63.240.161.99
MD5 Password:
***Permission denied
ntpdc> keyid
keyid is 134686616
A different keyid is generated.
Anyway, thanks for the help!
--
Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com
NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php
More information about the questions
mailing list