Ident protocol
Ident protocol
Jump to navigation
Jump to search
Internet protocol suite |
---|
Application layer |
|
Transport layer |
|
Internet layer |
|
Link layer |
|
This article needs to be updated.May 2016) ( |
The Ident Protocol (Identification Protocol, Ident), specified in RFC 1413, is an Internet protocol that helps identify the user of a particular TCP connection. One popular daemon program for providing the ident service is identd.
Contents
1 Function
2 Usefulness of ident
3 Security
4 Uses
5 Software
6 See also
7 References
8 Further reading
Function[edit]
The Ident Protocol is designed to work as a server daemon, on a user's computer, where it receives requests to a specified TCP port, generally 113. In the query, a client specifies a pair of TCP ports (a local and a remote port), encoded as ASCII decimals and separated by a comma (,). The server then sends a response that identifies the username of the user who runs the program that uses the specified pair of TCP ports, or specifies an error.
Suppose host A wants to know the username of the user who is connecting to its TCP port 23 (Telnet) from the client's (host B) port 6191. Host A would then open a connection to the ident service on host B, and issue the following query:
6191, 23
As TCP connections generally use one unique local port (6191 in this case), host B can unambiguously identify the program that has initiated the specified connection to host A's port 23, should it exist. Host B would then issue a response, identifying the user ("stjohns" in this example) who owns the program that initiated this connection and the name of its local operating system:
6193, 23 : USERID : UNIX : stjohns
But if it would turn out that no such connection exists on host B, it would instead issue an error response:
6195, 23 : ERROR : NO-USER
All ident messages should be delimited by an end of line sequence consisting of the carriage return and linefeed characters (CR+LF).[1]
Usefulness of ident[edit]
This section needs additional citations for verification.January 2012) (Learn how and when to remove this template message) ( |
Dialup hosts or shared shell servers often provide ident to enable abuse to be tracked back to specific users. In the case that abuse is handled on this host the concern about trusting the ident daemon is mostly irrelevant. Spoofing of the service and privacy concerns can be avoided by providing varying cryptographically strong tokens instead of real usernames.
If abuse is to be handled by the administrators of the service that users connect to using the ident providing host, then the ident service must provide information identifying each user. Usually it is impossible for the administrators of the remote service to know whether specific users are connecting via a trustable server or from a computer they themselves control. In the latter case the ident service provides no reliable information.
The usefulness of Ident for proving of a known identity to a remote host is limited to circumstances when:
- The user connecting is not the administrator of the machine. This is only likely for hosts providing Unix shell access, shared servers using a suEXEC-like construction and the like.
- One trusts the administrators of the machine and knows their user policy. This is most likely for hosts in a common security domain such as within a single organization.
- One trusts that the machine is the machine it claims to be and knows that machine. This is only easily arranged for hosts on a local area network or virtual network where all hosts on the network are trusted and new hosts cannot easily be added due to physical protection. On remote and normal local networks false ident replies can be accomplished by ip spoofing and, if DNS is used, by all kinds of DNS trickery. The ident daemon may provide cryptographically signed replies which, if they can be confirmed, solves these last, but not the first, concerns.
- There exist no intermediate obstacles to connecting to identd such as firewall, NAT, or proxy (such as if you were using ident with Apache httpd). These are common occurrences when going between security domains (as with public HTTP or FTP servers).
Security[edit]
This section needs additional citations for verification.January 2012) (Learn how and when to remove this template message) ( |
The ident protocol is considered dangerous because it allows crackers to gain a list of usernames on a computer system which can later be used for attacks. A generally accepted solution to this is to set up a generic/generated identifier, returning node information or even gibberish (from the requesters point of view) rather than usernames. This gibberish may be turned into real usernames by the ident administrator, when he or she is contacted about possible abuse, which means the usefulness for tracking abuse is preserved.
Uses[edit]
This section needs additional citations for verification.January 2012) (Learn how and when to remove this template message) ( |
Ident is important on IRC as a large number of people connect to IRC from a server shared by multiple users, often using a bouncer. Without Ident there would be no way to ban a single user without banning the entire host. The server administrator may also use this information to identify the abusive user.
On most IRC networks, when the server fails to get an Ident response it falls back to the username given by client, but marks it as "not verified", usually by prefixing with a tilde; e.g. ~josh. Some IRC servers even go as far as blocking clients without an ident response,[2] the main reason being that it makes it much harder to connect via an "open proxy" or a system where you have compromised a single account of some form but do not have root (on Unix-like systems, only root can listen for network connections on ports below 1024).
However, Ident provides no additional authentication when the user is connecting directly from their personal computer, on which they have enough privileges to control the Ident daemon as well.[1]
Software[edit]
oidentd (for Unix-like systems)
Retina Scan Identd (for Windows; supports multiple users in a way similar to Unix identd)
Windows Ident Server.
See also[edit]
- Internet Relay Chat (IRC)
- File Transfer Protocol (FTP)
- Simple Mail Transfer Protocol (SMTP)
- Network News Transfer Protocol (NNTP)
- Secure Shell (SSH)
- SOCKS proxies (SOCKS)
References[edit]
^ ab Johns, Michael (February 1993). Identification Protocol. IETF. doi:10.17487/RFC1413. RFC 1413. https://tools.ietf.org/html/rfc1413. Retrieved 1 April 2013.
^ "News für IRCNet-Nutzer bei T-Online". german IRCnet opers. Retrieved 2011-12-26..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"""""""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
Further reading[edit]
RFC 912 – Authentication Service
RFC 931 – Authentication Server
Daniel J. Bernstein: TAP Internet Draft, June 1992
Daniel J. Bernstein: Why TAP? A White Paper, 1992-08-20
RFC 1413 – Identification Protocol
RFC 1414 – Identification MIB- Peter Eriksson: TAPvsIDENT, 1993-11-03
Damien Doligez: Why encrypt ident/TAP replies?, 1994-02-22
Categories:
- Internet protocols
- Email authentication
- Internet Relay Chat
- Protocols related to Internet Relay Chat
(window.RLQ=window.RLQ||).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.220","walltime":"0.312","ppvisitednodes":{"value":1362,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":35425,"limit":2097152},"templateargumentsize":{"value":2263,"limit":2097152},"expansiondepth":{"value":22,"limit":40},"expensivefunctioncount":{"value":2,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":4165,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 266.478 1 -total"," 56.73% 151.185 1 Template:Reflist"," 26.30% 70.077 1 Template:Cite_web"," 26.16% 69.710 1 Template:Cite_IETF"," 21.48% 57.240 1 Template:Update"," 21.32% 56.816 4 Template:Ambox"," 21.30% 56.751 1 Template:Citation/core"," 18.68% 49.777 2 Template:Main_other"," 10.32% 27.493 1 Template:IPstack"," 10.28% 27.387 3 Template:Refimprove-section"]},"scribunto":{"limitreport-timeusage":{"value":"0.089","limit":"10.000"},"limitreport-memusage":{"value":2617018,"limit":52428800}},"cachereport":{"origin":"mw1263","timestamp":"20181222044324","ttl":1900800,"transientcontent":false}}});mw.config.set({"wgBackendResponseTime":83,"wgHostname":"mw1242"});});