From: Jamie C. <jca...@we...> - 2005-02-02 22:49:46
|
paddy wrote .. > Hi, > > I'm just looking at the heartbeat module in webmin 1.80. > The rest of the box is debian sarge with heartbeat_1.2.3-5. > > I'm new to heartbeat, and have no idea yet whether the > authkeys file format has changed. > > The authkeys interface doesn't seem to map to the underlying > config file. As I read it the format is something like: > > auth <indexi-to-use> > <index> <cipher> <pass> > <index> <cipher> <pass> > <index> <cipher> <pass> > > such that <index-to-use> specifies which line to actually use. > > examples from the documentation include: > > auth 1 > 1 crc > 2 sha1 HI! > 3 md5 Hello! > > and > > auth 1 > 1 sha1 key-for-sha1-any-text-you-want > > A simple hack would start something like: > > --- edit_auth.cgi.dist 2005-01-27 18:32:54.000000000 +0000 > +++ edit_auth.cgi 2005-02-01 18:50:10.000000000 +0000 > @@ -16,11 +16,12 @@ > $i = 1; > foreach $k ('crc', 'sha1', 'md5') { > printf "<input type=radio name=auth value=%d %s> %s\n", > - $i, $conf->{'auth'}->[0] == $i ? "checked" : "", > + $i, $conf->{"$conf->{'auth'}->[0]"}->[0] eq $k ? "checked" > : "", > $text{"auth_$k"}; > if ($k ne 'crc') { > printf "<input name=%s size=20 value='%s'>\n", > - $k, $conf->{$i}->[1]; > + $k, $conf->{"$conf->{'auth'}->[0]"}->[0] eq $k > ? > + $conf->{"$conf->{'auth'}->[0]"}->[1] : ""; > } > print "<br>\n"; > $i++; > > But as I understand it, having multiple <index,cipher,pass> lines is a > feature. > > It may be a little while before I get around to implementing support for > this (assuming that I've read this rightly and that such would be welcome), > and I certainly wouldn't be upset if anyone beat me to it :) The current interface is supposed to handle that auth.cf format .. Basically, it will allow you to select one of the three modes, and comment out the ones that are not being used. Do you see any problem with this? - Jamie |