idauth (version 1.6, $Date: 2001/04/28 01:23:54 $)
index
idauth.py

idauth.py - RFC 1413 client class.
 
Usage: 
    x = idauth(sport, cport, [rhost])
    print x.prog_output()
 
    -- sport  : port your server is listening on
    -- cport  : the current client connection
    -- rhost  : host to ask for ident service, or
                localhost.
 
The purpose of this module is to simply encapsulate connection to
an identd server, and getting a useful reply. This is really only
useful to servers requiring some identd service, eg SMTP HELO
transactions.
 
This module requires Python 2.0
 
Copyright (C) Sean Dwyer 2001 under GPL.

 
Modules
            
os
socket
string
sys

 
Classes
            
idauth

 
class idauth
      Identd authentication class.
 
PARAMETERS:
    rhost - remote host, default=None
    sport - server port
    cport - client port
 
Assumes the caller has the ports in the right order,
requests made on local ports are reversed.
 
If no rhost is specified, it is assumed that
the query is being made via localhost.
 
  
__init__(self, sport, cport, rhost=None)
cmd_output(self)
command-line output for client
get_ident(self)
bare-bones rfc1413 connection.
 
Returns: server reply. If rhost is localhost, or not
specified, arguments will be reversed to get callers id
not servers.
prog_output(self)
program-parseable output
 
Returns: 
    - if no error, the userid.
    - if error, the error.

 
Data
             IPORT = 113
__author__ = 'Sean Dwyer <ewe2@can.org.au>'
__date__ = '$Date: 2001/04/28 01:23:54 $'
__file__ = './idauth.py'
__name__ = 'idauth'
__version__ = '$Revision: 1.17 $'

 
Author
             Sean Dwyer <ewe2@can.org.au>