File: README

package info (click to toggle)
libnet-ident-perl 1.20-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 152 kB
  • ctags: 20
  • sloc: perl: 832; makefile: 41
file content (49 lines) | stat: -rw-r--r-- 1,575 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
NAME
       Net::Ident - lookup the username on the remote end of a
       TCP/IP connection

SYNOPSIS
        use Net::Ident;

        $username = Net::Ident::lookup(SOCKET, $timeout);

        $username = Net::Ident::lookupFromInAddr($localsockaddr,
                                                  $remotesockaddr, $timeout);

        $obj = Net::Ident->new(SOCKET, $timeout);
        $obj = Net::Ident->newFromInAddr($localsockaddr, $remotesockaddr,
                                               $timeout);
        $status = $obj->query;
        $status = $obj->ready;
        $username = $obj->username;
        ($username, $opsys, $error) = $obj->username;
        $fh = $obj->getfh;
        $txt = $obj->geterror;

        use Net::Ident 'ident_lookup';

        $username = ident_lookup(SOCKET, $timeout);

        use Net::Ident 'lookupFromInAddr';

        $username = lookupFromInAddr($localsockaddr, $remotesockaddr, $timeout);

        use Net::Ident ':fh';

        $username = SOCKET->ident_lookup($timeout);

        use Net::Ident ':apache';

        # my Apache $r;
        $c = $r->connection;
        $username = $c->ident_lookup($timeout);


OVERVIEW
       Net::Ident is a module that looks up the username on the
       remote side of a TCP/IP connection through the ident
       (auth/tap) protocol described in RFC1413 (which supersedes
       RFC931). Note that this requires the remote site to run a
       daemon (often called identd) to provide the requested
       information, so it is not always available for all TCP/IP
       connections.