/*
[23919] daemon@ATHENA.MIT.EDU (Theodore Ts'o)  Usenet_Meeting  04/08/93 18:25 (44 lines)
Subject: Re: Idea for NNTP 1.6
Date: Thu, 8 Apr 93 17:59:53 -0400
From: Theodore Ts'o <tytso@Athena.MIT.EDU>
To: "Louis A. Mamakos" <louie@NI.umd.edu>
Cc: Guy Middleton <gamiddleton@math.waterloo.edu>, mjr@TIS.COM,
        nntp-managers@colossus.apple.com
In-Reply-To: Louis A. Mamakos's message of Thu, 08 Apr 1993 16:05:00 -0400,
        <9304082005.AA06324@sayshell.umd.edu>

   From: "Louis A. Mamakos" <louie@NI.umd.edu>
   Date: Thu, 08 Apr 1993 16:05:00 -0400

   Ident bogus?  Why, everyone should run an ident server!  They're fun,
   easy to use, taste great and are less filling!  If you have perl, you
   can run the one that I use on my workstation.

Here's the one on my workstation I use..... in case you don't have perl,
you can run this one instead.

                                                - Ted
*/

/*
 * This is a "special" version of the ident protocol.  :-)
 */

#include <stdio.h>

#define NAME "brnstnd@kramden.acf.nyu.edu"

main(argc,argv)
  int argc;
  char *argv[];
{
        int lport, fport;

        /* Get the local/foreign port pair from the luser */
        if (scanf("%d , %d", &lport, &fport) != 2) {
                printf("%d, %d: ERROR: UNKNOWN-ERROR\r\n", lport, fport);
                exit(1);
        }

        printf("%d, %d: USERID: UNIX: %s\r\n", lport, fport, NAME);
        exit(0);
}
