[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is ident secure?



On Thu, Aug 30, 2001 at 10:57:55PM -0400, Brian P. Flaherty wrote:
> I have had a lot of problems running non-Debian software when I
> disable ident.  

Here's a safe version of identd which I tend to run on my systems.
This way annoying programs that kvetch if identd isn't available are
fed something to keep them fat, dumb, and happy.....

						- Ted

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

#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);
}



Reply to: