[2009] in athena10

home help back first fref pref prev next nref lref last post

Re: [Debathena] #167: debathena-lert-server binds only to localhost

daemon@ATHENA.MIT.EDU (Debathena Trac)
Fri Apr 3 00:49:56 2009

MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@mit.edu
To: broder@mit.edu
Date: Fri, 03 Apr 2009 04:49:35 -0000
Reply-To: 
Message-ID: <052.84c5c843ddcc77ec666f4643f00c1e27@mit.edu>
In-Reply-To: <043.5d09ef121b3ba7b36b3454d67e59a4b4@mit.edu>
Content-Transfer-Encoding: 8bit

#167: debathena-lert-server binds only to localhost---------------------+------------------------------------------------------
  Reporter:  broder  |       Owner:          
      Type:  defect  |      Status:  new     
  Priority:  low     |   Component:  --      
Resolution:          |    Keywords:  proposed
---------------------+------------------------------------------------------Changes (by broder):
  * keywords:  => proposed


Old description:

> The debathena-lert-server package exists, and provides the necessary
> binaries, but has a relatively useless configuration.
>
> We should update lert.h to use more sane locations than /var/ops, and
> also provide an initscript.

New description:

 debathena-lert-server uses `gethostbyname(uname().nodename)` as the
 address to bind to. Unfortunately, on most Ubuntu systems, this works out
 to being 127.0.1.1 instead of the actual IP address, thanks to Ubuntu's
 `/etc/hosts` hacks.

 More fun, the krb4 code needs the destination address of incoming packets
 for the encryption of the reply, so we can't simply switch to listening on
 `INADDR_ANY` with no other changes.

 I see two options:

  1. Change the code to use `recvmsg` instead of `recvfrom`, in which case
 you can get at the destination address of the incoming packets at the
 expense of substantially increased complexity. See
 http://tinyurl.com/d79x9r for an example of how to do this.

  2. Tear out the krb4 code. The krb5 protocol was introduced in 2002, and
 it seems pretty unlikely that krb4 clients are still around. It's already
 nicely conditionalized out so that it'll build on squeeze.

--
Comment:
 debathena-lert 10.0.2-0debathena1 fixes the paths that debathena-lert-
 server uses, and includes an init script. It's going into -proposed with
 everything else.

 There is one remaining issue, and I've updated the description to document
 that.
-- Ticket URL: <http://debathena.mit.edu/trac/ticket/167#comment:2>Debathena <http://debathena.mit.edu/>MIT Debian-Athena Project

home help back first fref pref prev next nref lref last post