Back to index

nagios-plugins  1.4.16
radius.h
Go to the documentation of this file.
00001 /*
00002  *
00003  *     RADIUS
00004  *     Remote Authentication Dial In User Service
00005  *
00006  *
00007  *     Livingston Enterprises, Inc.
00008  *     6920 Koll Center Parkway
00009  *     Pleasanton, CA   94566
00010  *
00011  *     Copyright 1992 Livingston Enterprises, Inc.
00012  *
00013  *     Permission to use, copy, modify, and distribute this software for any
00014  *     purpose and without fee is hereby granted, provided that this
00015  *     copyright and permission notice appear on all copies and supporting
00016  *     documentation, the name of Livingston Enterprises, Inc. not be used
00017  *     in advertising or publicity pertaining to distribution of the
00018  *     program without specific prior permission, and notice be given
00019  *     in supporting documentation that copying and distribution is by
00020  *     permission of Livingston Enterprises, Inc.   
00021  *
00022  *     Livingston Enterprises, Inc. makes no representations about
00023  *     the suitability of this software for any purpose.  It is
00024  *     provided "as is" without express or implied warranty.
00025  *
00026  */
00027 
00028 /*
00029  *     @(#)radius.h  2.0  03-Aug-1996
00030  */
00031 
00032 #define AUTH_VECTOR_LEN            16
00033 #define AUTH_PASS_LEN              16
00034 #define AUTH_STRING_LEN            128    /* maximum of 254 */
00035 
00036 
00037 typedef struct pw_auth_hdr {
00038        u_char        code;
00039        u_char        id;
00040        u_short              length;
00041        u_char        vector[AUTH_VECTOR_LEN];
00042        u_char        data[2];
00043 } AUTH_HDR;
00044 
00045 #define AUTH_HDR_LEN               20
00046 #define CHAP_VALUE_LENGTH          16
00047 
00048 #define PW_AUTH_UDP_PORT           1645
00049 #define PW_ACCT_UDP_PORT           1646
00050 
00051 #define VENDORPEC_USR                     429
00052 
00053 #define PW_TYPE_STRING                    0
00054 #define PW_TYPE_INTEGER                   1
00055 #define PW_TYPE_IPADDR                    2
00056 #define PW_TYPE_DATE               3
00057 
00058 
00059 #define       PW_AUTHENTICATION_REQUEST   1
00060 #define       PW_AUTHENTICATION_ACK              2
00061 #define       PW_AUTHENTICATION_REJECT    3
00062 #define       PW_ACCOUNTING_REQUEST              4
00063 #define       PW_ACCOUNTING_RESPONSE             5
00064 #define       PW_ACCOUNTING_STATUS        6
00065 #define PW_PASSWORD_REQUEST        7
00066 #define PW_PASSWORD_ACK                   8
00067 #define PW_PASSWORD_REJECT         9
00068 #define       PW_ACCOUNTING_MESSAGE              10
00069 #define PW_ACCESS_CHALLENGE        11
00070 
00071 #define       PW_USER_NAME                1
00072 #define       PW_PASSWORD                 2
00073 #define       PW_CHAP_PASSWORD            3
00074 #define       PW_NAS_IP_ADDRESS           4
00075 #define       PW_NAS_PORT_ID                     5
00076 #define       PW_SERVICE_TYPE                    6
00077 #define       PW_FRAMED_PROTOCOL          7
00078 #define       PW_FRAMED_IP_ADDRESS        8
00079 #define       PW_FRAMED_IP_NETMASK        9
00080 #define       PW_FRAMED_ROUTING           10
00081 #define       PW_FILTER_ID                11
00082 #define       PW_FRAMED_MTU               12
00083 #define       PW_FRAMED_COMPRESSION              13
00084 #define       PW_LOGIN_IP_HOST            14
00085 #define       PW_LOGIN_SERVICE            15
00086 #define       PW_LOGIN_TCP_PORT           16
00087 #define PW_OLD_PASSWORD                   17
00088 #define PW_REPLY_MESSAGE           18
00089 #define PW_CALLBACK_NUMBER         19
00090 #define PW_CALLBACK_ID                    20
00091 #define PW_EXPIRATION                     21
00092 #define PW_FRAMED_ROUTE                   22
00093 #define PW_FRAMED_IPXNET           23
00094 #define PW_STATE                   24
00095 #define PW_CLASS                   25
00096 #define PW_VENDOR_SPECIFIC         26
00097 #define PW_SESSION_TIMEOUT         27
00098 #define PW_IDLE_TIMEOUT                   28
00099 #define PW_CALLED_STATION_ID              30
00100 #define PW_CALLING_STATION_ID             31
00101 #define PW_PROXY_STATE                    33
00102 
00103 #define PW_ACCT_STATUS_TYPE        40
00104 #define PW_ACCT_DELAY_TIME         41
00105 #define PW_ACCT_INPUT_OCTETS              42
00106 #define PW_ACCT_OUTPUT_OCTETS             43
00107 #define PW_ACCT_SESSION_ID         44
00108 #define PW_ACCT_AUTHENTIC          45
00109 #define PW_ACCT_SESSION_TIME              46
00110 #define PW_ACCT_INPUT_PACKETS             47
00111 #define PW_ACCT_OUTPUT_PACKETS            48
00112 
00113 #define PW_CHAP_CHALLENGE          60
00114 #define PW_NAS_PORT_TYPE           61
00115 #define PW_PORT_LIMIT                     62
00116 #define PW_CONNECT_INFO                   77
00117 
00118 #define PW_FALL_THROUGH                   500
00119 #define PW_ADD_PORT_TO_IP_ADDRESS  501
00120 #define PW_EXEC_PROGRAM                   502
00121 #define PW_EXEC_PROGRAM_WAIT              503
00122 
00123 #define PW_AUTHTYPE                1000
00124 #define PW_PREFIX                  1003
00125 #define PW_SUFFIX                  1004
00126 #define PW_GROUP                   1005
00127 #define PW_CRYPT_PASSWORD          1006
00128 #define PW_CONNECT_RATE                   1007
00129 #define PW_USER_CATEGORY           1029
00130 #define PW_GROUP_NAME                     1030
00131 #define PW_HUNTGROUP_NAME          1031
00132 #define PW_SIMULTANEOUS_USE        1034
00133 #define PW_STRIP_USERNAME          1035
00134 #define PW_HINT                           1040
00135 #define PAM_AUTH_ATTR                     1041
00136 #define PW_LOGIN_TIME                     1042
00137 
00138 /*
00139  *     INTEGER TRANSLATIONS
00140  */
00141 
00142 /*     USER TYPES    */
00143 
00144 #define       PW_LOGIN_USER               1
00145 #define       PW_FRAMED_USER                     2
00146 #define       PW_DIALBACK_LOGIN_USER             3
00147 #define       PW_DIALBACK_FRAMED_USER            4
00148 
00149 /*     FRAMED PROTOCOLS     */
00150 
00151 #define       PW_PPP                      1
00152 #define       PW_SLIP                            2
00153 
00154 /*     FRAMED ROUTING VALUES       */
00155 
00156 #define       PW_NONE                            0
00157 #define       PW_BROADCAST                1
00158 #define       PW_LISTEN                   2
00159 #define       PW_BROADCAST_LISTEN         3
00160 
00161 /*     FRAMED COMPRESSION TYPES    */
00162 
00163 #define       PW_VAN_JACOBSEN_TCP_IP             1
00164 
00165 /*     LOGIN SERVICES       */
00166 
00167 #define       PW_TELNET                   0
00168 #define       PW_RLOGIN                   1
00169 #define       PW_TCP_CLEAR                2
00170 #define       PW_PORTMASTER               3
00171 
00172 /*     AUTHENTICATION LEVEL */
00173 
00174 #define PW_AUTHTYPE_LOCAL          0
00175 #define PW_AUTHTYPE_SYSTEM         1
00176 #define PW_AUTHTYPE_SECURID        2
00177 #define PW_AUTHTYPE_CRYPT          3
00178 #define PW_AUTHTYPE_REJECT         4
00179 #define PW_AUTHTYPE_PAM                   253
00180 #define PW_AUTHTYPE_ACCEPT         254
00181 
00182 /*     PORT TYPES           */
00183 #define PW_NAS_PORT_ASYNC          0
00184 #define PW_NAS_PORT_SYNC           1
00185 #define PW_NAS_PORT_ISDN           2
00186 #define PW_NAS_PORT_ISDN_V120             3
00187 #define PW_NAS_PORT_ISDN_V110             4
00188 
00189 /*     STATUS TYPES  */
00190 
00191 #define PW_STATUS_START                   1
00192 #define PW_STATUS_STOP                    2
00193 #define PW_STATUS_ALIVE                   3
00194 #define PW_STATUS_ACCOUNTING_ON           7
00195 #define PW_STATUS_ACCOUNTING_OFF   8
00196