Ident server
I have a question about the Ident (Identification) protocol. (RFC931 among others). It's mainly used by IRC, which is why I need to figuer it out.
Please tell me if anything is wrong with the following scenario.
1) Connect to some IRC server..
2) My ident server accepts a connection..
3) My ident server recv's "14444,6667" (where the server's IRC port is 6667 and my local port is 14444).
4) Check to see if I am, indeed connected like that (or just blow that part off, and switch the numbers around).
5) Send back to the server "6667,14444:USERID:MyUsername" or "6667,1444:ERROR:UNKNOWN-ERROR" in the event of an error.
Is that about right?
[edited by - zackriggle on December 28, 2003 10:44:46 PM]
I once reverse-engineered it many years ago, and it wasn''t that hard. Use Ethereal or something to look at an existing implementation.
Or read the source of any of a number of implementations:
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=identd+source+download&btnG=Google+Search
Or read the source of any of a number of implementations:
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=identd+source+download&btnG=Google+Search
enum Bool { True, False, FileNotFound };
Yay! I got a working Ident server in under 30 minutes. Well, it sends a random username... but it WORKS!
For anyone who searches for Ident later on, this is the format for the data that they will send you:
"<their Server Port>,\r\n"
This is what you need to send back to them (in a nutshell):
", <thier Server Port> : USERID : UNIX : "
- Terms to pick up searches by others in the future -
ident identd identification protocol rfc 1413 931 912 rfc1413 rfc931 rfc912 irc ircd
[edited by - zackriggle on December 29, 2003 1:23:49 AM]
For anyone who searches for Ident later on, this is the format for the data that they will send you:
"<their Server Port>,
This is what you need to send back to them (in a nutshell):
"
- Terms to pick up searches by others in the future -
ident identd identification protocol rfc 1413 931 912 rfc1413 rfc931 rfc912 irc ircd
[edited by - zackriggle on December 29, 2003 1:23:49 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement