IdentdServer

(c) 2013-2014 http://ircanywhere.com

Author: Ricki Hastings

IRCAnywhere server/identd.js

class IdentdServer.IdentdServer()

This is the IdentdServer object which creates an integrated identd server and can be turned off via the configuration, this is a singleton and should never be instantiated more than once.

The configuration option identd.enable and identd.port will control whether this runs and what port it runs on, the default port is 113 but you can bind it to whatever you like and use iptables to forward to 113, without doing that IRCAnywhere will need elevated permissions to bind.

Returns:void
IdentdServer.init()

Initiates the identd server and handles any configuration options

Returns:void
IdentdServer.onData(socket, data)

Handles incoming data to the identd server, this shouldn’t ever be called, but the documentation is here so people know what the function is doing and where responses are handled etc. Protocol information can be found at http://en.wikipedia.org/wiki/Ident_protocol

Arguments:
Returns:

void

IdentdServer.parse(line)

Once the data has been handled it needs to be parsed so we can figure out what the identd request is and respond to it accordingly to validate our connecting user.

Arguments:
  • line (string) – The parsed ident line
Returns:

The response for the requester