Family: id
Authors: Luke Mewburn , modified by Kevin S Braunsdorf
Mail: [email protected], [email protected]
Version: 5.1
Bugs: Can block forever.
Introduction
RFC 1413
describes how to find out which login might own a TCP/IP connection
(since 931 has been obsoleted). This is mostly
useful for audit logs because it might be encoded or abstracted in some
way
Your application should not depend on this routine
as the only source of authentication (the login name found might not
be a plain-text login name).
Configuration
A C Preprocessor macro is the only tuning one might do (for testing).
- IDENT_PORT
-
The default TAP port, usually 113.
Provides
A single call to get the ident return value.
-
int ident_client(struct sockaddr_in peeraddr, struct sockaddr_in ouraddr, char pcIdent[1024])
-
Uses the two
socaddr_in
's to request a TAP, returns the
TAP data in the 1k buffer provided.
- main
-
A simple reflector test driver that listens on port 7098 for telnet connections.
It TAPs them and outputs the incoming login name.
To Do List
Because this can block (forever) it should be async, or take a timeout value.
Maybe set as a global variable? Not added to the parameter list, for sure.
$Id: identd.html,v 6.5 2012/08/30 14:53:51 ksb Exp $