Permalink
Browse files

import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. need…

…s clennup
  • Loading branch information...
1 parent a2bca40 commit 9e7bb999e3714990fa78510e9aa9e2a06d04734d cgd committed Feb 4, 1994
@@ -0,0 +1,52 @@
+Credits go to (I've probably forgot someone - please don't hesitate
+to tell me!) for helping making Pidentd what it is:
+
+Casper Dik <casper@fwi.uva.nl>, Math & CS Faculty, U. of Amsterdam, NL
+ (Added support for SunOS 5 (Solaris 2))
+
+Dave Shield <D.T.Shield@compsci.liverpool.ac.uk>, CS Dept. Liverpool U., UK
+ (Added support for HP9K HPUX 8.*)
+
+Jan L. Peterson <jlp@phred.math.byu.edu>, Math Dept. BYU, USA
+ (Added support for MIPS RISC/os and fixed a few other things)
+
+Fletcher Mattox <fletcher@cs.utexas.edu>, University of Texas, USA
+ (Added support for HP9K HP-UX 7.*)
+
+Mark Monnin <mgrmem@nextwork.rose-hulman.edu>, Rose-Hulman Inst. of Tech, USA
+ (Added support for DEC Ultrix 4.*)
+
+Simon Leinen <simon@lia.di.epfl.ch>, Switzerland
+ (Added support for Silicon Graphics IRIX 4.*)
+
+Frank Maas <maas@dutiws.tudelft.nl>, Delft Univ. of Technology, The Netherlands
+ (Added support for Sequent Dynix 3.*)
+
+Andrew Herbert <andrewh@molly.cs.monash.edu.au>, Monash University, Australia
+ (Added support for System V/Release 4)
+
+David Bennet <ddt@gu.uwa.edu.au>, Australia
+ (Added support for 386BSD)
+
+Fishman M. Shmuel <fms@ccgr.technion.ac.il>, Technion Inst. of Tech., Israel
+ (Added support for Convex & 4.3BSDtahoe (then heavily hacked by me))
+
+Bradley E. Smith <brad@bradley.bradley.edu>, Bradley University, USA
+ (Added support for AT&T's own version of SVR4)
+
+RenE J.V. Bertin <bertin@neuretD.biol.ruu.nl>, Uni. of Utrecht, The Netherlands
+ (Added support for Apple A/UX 2.*)
+
+Douglas Lee Schales <Doug.Schales@sc.tamu.edu>, Texas A&M University, USA
+ (Added support for Cray UNICOS 6.*)
+
+Don Hazlewood <haz@dali.math.swt.edu>, SW Texas State U., USA
+ (Added support for A/UX 3.*)
+
+ Nigel Metheringham <nigelm@ohm.york.ac.uk>, University of York, UK
+ (Added support for NeXT, SunOS 3.*, corrections for MIPS)
+
+----------------------------------------------------------------------------
+Peter Eriksson <pen@lysator.liu.se>, Lysator, Linkoping University, Sweden.
+ (Original code for Sun SunOS 4.* and Sequent Dynix 2.*)
+
@@ -0,0 +1,10 @@
+# $Id: Makefile,v 1.1.1.1 1994/02/04 21:41:32 cgd Exp $
+
+PROG= identd
+SRCS= config.c identd.c netbsd.c parse.c proxy.c version.c
+MAN8= identd.0
+
+LDADD= -lkvm
+DPADD= ${LIBKVM}
+
+.include <bsd.prog.mk>
View
@@ -0,0 +1,129 @@
+ pidentd
+
+ ("Peter's Ident Daemon" or is it "Portable Ident Daemon"?)
+
+ Peter Eriksson <pen@lysator.liu.se>
+
+
+This program is released into the public domain and can be used by
+anyone who wants to. Vendors may include it into their distributions
+if they want to without any restrictions. (Although it would be nice
+to be notified by email if someone decides to do that, and/or a note
+somewhere about who wrote this program. Like in the man-page or so.. :-)
+
+This is a program that implements the RFC1413 identification server. It
+was very much inspired by Dan Bernstein's original 'authd' (but unlike
+that program doesn't use 'netstat' to get some of the information) It
+uses the kernel information directly. (And is due to that fact a lot
+faster). Dan has now written another version of the 'authd' daemon that
+uses his 'kstuff' to read the kernel information. Unlike that daemon,
+this will use only normally available kernel access functions (and is due
+to that more limited in the different machines it support). Please note
+that this daemon used to be called pauthd but has changed name to better
+reflect what it does (and to conform to the new RFC).
+
+This daemon has been tested on the following machines/OS (please report
+to me if you've tested a newer version, or if your machine/OS isn't among
+the ones below):
+
+Machine Operating System Pidentd version
+---------------------- ---------------------- --------------------------
+ Sequent Balance Dynix 3.0.14 2.1beta.12
+ Sequent Symmetry Dynix 3.1.2 2.1beta.3
+ Sun 3/50 SunOS 3.5 2.1beta.8.1 (3)
+ Sun 386i SunOS 4.0.2 1.9beta
+ Sun 2/120 SunOS 4.0.3 2.1beta.10
+ Sun 3/280 SunOS 4.1.1 2.1beta.12
+ Sun 4/380 SunOS 4.1.3 2.1beta.12
+ Sun SS1/41 SunOS 5.1 2.1beta.11
+ HP 9000/375 HP-UX 7.0 2.1beta.10.1 (1)
+ HP 9000/300 HP-UX 8.0 2.1beta.12
+ HP 9000/340 HP-UX 8.0 2.1beta.10.1
+ HP 9000/360 HP-UX 8.0 2.1beta.10.1
+ HP 9000/710 HP-UX 8.07 2.1beta.10.1
+ HP 9000/720 HP-UX 8.07 2.1beta.10.1
+ HP 9000/715 HP-UX 9.0 2.1beta.9.1
+ HP 9000/827 HP-UX 8.02 2.1beta.8.1
+ HP 9000/834 HP-UX 7.0 2.0beta.4
+ HP 9000/835 HP-UX 8.00 2.1beta.10.1
+ MIPS RISC/OS 4.5x 2.1beta.8.1
+ DECstation 2100 Ultrix 4.2-96 2.1beta.2 (2)
+ DECstation 5000/133 Ultrix 4.2 2.1beta.9.1 (2) [?]
+ DEC VAXstation 2000 Ultrix-32 3.1 2.1beta.12 (2) [?]
+ DEC VAX vs3520 Ultrix 3.0 2.1beta.9.1 (2) [?]
+ DEC VAX 11/780 4.3BSD Reno 2.1beta.12 (2)
+ i486-PC UHC SVR4 2.0 2.0beta.4 (2)
+ i486-PC Dell SVR4 2.2 2.0beta.4 (2)
+ i486-PC ESIX SVR4 4.0.4 2.1beta.2 (2)
+ i486-PC 386BSD 0.1 2.1beta.3 (2)
+ Cray UNICOS 6.0.12 2.1beta.7
+ NeXT NeXTSTEP 2.1 2.1beta.9.1 (3)
+ NeXT NeXTSTEP 3.0 2.1beta.9.1 (3)
+ Pyramid 90x dualPort OSx 4.1 2.1beta.12
+ Silicon Graphics IRIX 4 2.1beta.10
+
+Notes:
+ 1) HP-UX 7.0 doesn't support running streams based services from
+ Inetd with the "wait" option (and the "-w" flag to Pidentd).
+
+ It also has problems with starting stuff as user "sys" from Inetd.
+ (It doesn't correctly set the group id to "sys") so I suggest you
+ either starts it as user "root" and use the "-u" and "-g" flags
+ to setuid and setgid itself to user "sys", group "sys", or do a
+ 'chgrp sys in.identd' and then a 'chmod g+s in.identd' and start
+ it as user "sys" from Inetd.
+
+ 2) These systems also doesn't support running streams based
+ services from Inetd with the "wait" option.
+
+ 3) See notes in the READMEs/README.<machine-type> specific files.
+
+
+Please let me know if you find any bugs, or have ported it to other
+machines (and care to share the changes with me and the world!).
+
+See the manual page for information about the various command line
+options that are available.
+
+NOTE: One should NOT use the -d option when using it for normal use!
+
+If you intend to create or modify daemons that use the IDENT protocol
+then you may wish to get the "libident" library that contains some
+functions to implement the client side of this protocol. It is available
+as "libident-*.tar.Z" in "pub/ident/libs" at "ftp.lysator.liu.se".
+
+There is a mailing list for users of the IDENT(RFC1413)/TAP protocol called
+'ident-users@lysator.liu.se' that you may want to consider joining.
+Send mail to the address 'ident-users-request@lysator.liu.se' to
+join it. This list is intended for generic discussions on using this
+protocol and it's associated tools.
+
+If you only want to receive news about new (non-alpha/beta) releases of
+Pidentd then you can join the 'ident-announce@lysator.liu.se' mailing
+list. Send mail to the address 'ident-announce-request@lysator.liu.se' to
+join it. No discussions will take place on this list.
+
+I also run a small mailing list for people who wants to act as testers
+of new alpha/beta-versions of Pidentd. If you wish to join, please send
+mail to the address 'pidentd-testers-request@lysator.liu.se'. (I can always
+use more testers, so don't hesitate :-)
+
+It's a human (namely me :-) that reads the letters sent to *-request.
+Please include the full email address to which to wish to have the
+letters sent.
+
+I'm grateful for success/failure stories about installing/compiling this
+daemon...
+
+Information of interrest:
+
+ 1. Machine and operating system type and version.
+ 2. Command line flags.
+ 3. Inetd.conf configuration.
+ 4. Did it work, or not. And if not - what did it report to the
+ syslog file? (You'll have to add the "-l" option and probably
+ reconfigure your Syslogd). If you use the "-d" option then
+ you can see a verbose error if you Telnet into it directly and
+ send it a query manually. (See the INSTALL file for more information).
+
+/Peter Eriksson <pen@lysator.liu.se>, 5 April 1993
@@ -0,0 +1,46 @@
+/*
+** config.c This file handles the config file
+**
+** This program is in the public domain and may be used freely by anyone
+** who wants to.
+**
+** Last update: 6 Dec 1992
+**
+** Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
+*/
+
+#include <stdio.h>
+#include <errno.h>
+
+#include "error.h"
+#include "identd.h"
+#include "paths.h"
+
+
+int parse_config(path, silent_flag)
+ char *path;
+ int silent_flag;
+{
+ FILE *fp;
+
+ if (!path)
+ path = PATH_CONFIG;
+
+ fp = fopen(path, "r");
+ if (!fp)
+ {
+ if (silent_flag)
+ return 0;
+
+ ERROR1("error opening %s", path);
+ }
+
+ /*
+ ** Code should go here to parse the config file data.
+ ** For now we just ignore the contents...
+ */
+
+
+ fclose(fp);
+ return 0;
+}
@@ -0,0 +1,42 @@
+/*
+** error.h Error handling macros
+**
+** This program is in the public domain and may be used freely by anyone
+** who wants to.
+**
+** Last update: 19 Aug 1992
+**
+** Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
+*/
+
+#ifndef __ERROR_H__
+#define __ERROR_H__
+
+#include <syslog.h>
+
+#define ERROR(fmt) \
+ ((syslog_flag ? (syslog(LOG_ERR, fmt),0) : 0), \
+ (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
+ lport, fport), \
+ fprintf(stderr, fmt), perror(": "), 0) : \
+ (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
+ fflush(stdout), fflush(stderr), exit(1), 0)
+
+
+#define ERROR1(fmt,v1) \
+ ((syslog_flag ? (syslog(LOG_ERR, fmt, v1),0) : 0), \
+ (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
+ lport, fport), \
+ fprintf(stderr, fmt, v1), perror(": "), 0) : \
+ (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
+ fflush(stdout), fflush(stderr), exit(1), 0)
+
+#define ERROR2(fmt,v1,v2) \
+ ((syslog_flag ? (syslog(LOG_ERR, fmt, v1, v2),0) : 0), \
+ (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
+ lport, fport), \
+ fprintf(stderr, fmt, v1, v2), perror(": "), 0) : \
+ (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
+ fflush(stdout), fflush(stderr), exit(1), 0)
+
+#endif
Oops, something went wrong.

0 comments on commit 9e7bb99

Please sign in to comment.