"Fossies" - the Fresh Open Source Software Archive

Member "ident2-v1.07_FINAL/define.h" (22 Jul 2005, 1309 Bytes) of package /linux/privat/old/ident2-v1.07_FINAL.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "define.h" see the Fossies "Dox" file reference documentation.

    1 
    2 #include "config.h" /* need this for sys dependancy fun */
    3 
    4 /*
    5  * User the ident service should run as to provide maximum system
    6  * safety (in case of exploits and such). User nobody should work
    7  * fine on Linux and FreeBSD. This is only supplied for admins that
    8  * may perhaps be -ultra- security conscious (insane?) enough to make 
    9  * a seperate user for ident services. It also allows for fun things
   10  * with groups.
   11  */
   12 #define SAFE_ACCESS_USER    "nobody"
   13 
   14 /*
   15  * Port to bind to.
   16  * I am not aware of any other ident server or ident query agent
   17  * in existance that uses a port other than 113.
   18  */
   19 #define IDENT_PORT      113
   20 
   21 /*
   22  * user should create this file in their home directory 
   23  * if they do not want ident2 to send out ident 
   24  * replies.
   25  */
   26 #define NOIDENT_FILE    ".noident"
   27 
   28 /*
   29  * ident server looks for this file in the user's
   30  * home directory and uses this to decide what to reply
   31  */
   32 #define USERCONF_FILE   ".ident"
   33 
   34 /*
   35  * number of default max connections (overriden via command-line)
   36  * that a server will handle at once.
   37  */
   38 #define DEF_MAX_CONNECTIONS 25
   39 
   40 /*
   41  * default amount of time (overriden via command-line) to keep
   42  * any given connection open for (specified in seconds).
   43  */
   44 #define DEF_CLIENT_TIMEOUT  20
   45 
   46 /*
   47  * if you happen to use this feature
   48  */
   49 #define RAND_STRING_LENGTH  6
   50