diff -ruN squid_radius_auth-1.09/Changelog squid_radius_auth-1.10/Changelog --- squid_radius_auth-1.09/Changelog 2006-05-24 16:19:27.000000000 +0200 +++ squid_radius_auth-1.10/Changelog 2008-03-07 21:31:18.000000000 +0100 @@ -1,3 +1,6 @@ +1.10: - Fix processing of more than 256 queries + - Send a dummy NAS-Port-Type attribute + - Documentation cleanup 1.09: - RADIUS protocol fixes by Henrik Nordstrom - Corrected how retransmits & timeouts is handled - The shared secret now verified properly diff -ruN squid_radius_auth-1.09/README squid_radius_auth-1.10/README --- squid_radius_auth-1.09/README 2007-06-05 01:03:07.000000000 +0200 +++ squid_radius_auth-1.10/README 2007-06-25 12:34:51.000000000 +0200 @@ -16,14 +16,15 @@ make install or if you want the helper installed elsewhere than /usr/local/squid -(the default installation path of Squid-2.5) use somethin like: +(the default installation path of Squid-2.5) use something like: -make PREFIX=/usr BINDIR='${PREFIX}/libexec/squid' install +make CONFDIR=/etc PREFIX=/usr BINDIR='${PREFIX}/libexec/squid' install Complete list of make options for tweakin the installation paths: PREFIX Top level installation directory (/usr/local/squid) BINDIR Where the binary is installed (PREFIX/libexec) + CONFDIR Where the configuration file is installed (PREFIX/etc) MANDIR Where the manpage is installed (PREFIX/man/man8) MANEXT Manpage extension (.8) DESTDIR Root prefix for packaging diff -ruN squid_radius_auth-1.09/squid_rad_auth.c squid_radius_auth-1.10/squid_rad_auth.c --- squid_radius_auth-1.09/squid_rad_auth.c 2006-05-24 16:27:32.000000000 +0200 +++ squid_radius_auth-1.10/squid_rad_auth.c 2008-03-07 21:28:01.000000000 +0100 @@ -75,13 +75,14 @@ static char *send_buffer = (char *) i_send_buffer; static char *recv_buffer = (char *) i_recv_buffer; static int sockfd; -static int request_id; +static u_char request_id; static char vector[AUTH_VECTOR_LEN]; static char secretkey[MAXPASS + 1] = ""; static char server[MAXLINE] = ""; static char identifier[MAXLINE] = ""; static char svc_name[MAXLINE] = "radius"; static int nasport = 111; +static int nasporttype = 0; static UINT4 nas_ipaddr; static UINT4 auth_ipaddr; static int retries = 30; @@ -314,6 +315,14 @@ ptr += 4; total_length += 6; + *ptr++ = PW_NAS_PORT_TYPE; + *ptr++ = 6; + + ui = htonl(nasporttype); + memcpy(ptr, &ui, 4); + ptr += 4; + total_length += 6; + if (*identifier) { int len = strlen(identifier); *ptr++ = PW_NAS_ID; diff -ruN squid_radius_auth-1.09/squid_radius_auth.8 squid_radius_auth-1.10/squid_radius_auth.8 --- squid_radius_auth-1.09/squid_radius_auth.8 2006-05-24 16:19:27.000000000 +0200 +++ squid_radius_auth-1.10/squid_radius_auth.8 2007-06-25 12:50:58.000000000 +0200 @@ -16,11 +16,8 @@ . .TP .BI "-f " "configfile " -Specifies the path to a configuration file. This file may contain -two directives (one per line): "server" specifies the name of the -RADIUS server to connect to. "secret" specifies the shared RADIUS -secret. Lines beginning with a # is ignored. "identifier" specifies -what the proxy should identify itsels as to the RADIUS server. +Specifies the path to a configuration file. See the CONFIGURATION section +for details. . .TP .BI "-h " server @@ -43,6 +40,28 @@ .TP .BI "-t " timeout RADIUS request timeout. Default 10 seconds. +. +.SH CONFIGURATION +The configuration specifies how the helper connects to RADIUS. +The file contains a list of directives (one per line). Lines +beginning with a # is ignored. +. +.TP +.BI "server " radiusserver +specifies the name or address of the RADIUS server to connect to. +. +.TP +.BI "secret " somesecretstring +specifies the shared RADIUS secret. +. +.TP +.BI "identifier " nameofserver +specifies what the proxy should identify itsels as to the RADIUS server. +This directive is optional. +. +.TP +.BI "port " portnumber +Specifies the port number or service name where the helper should connect. .SH AUTHOR This manual page was written by .I Henrik Nordstrom