Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 16:41:36 GMT
From:      Dmitry <d.y.kazarov@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153956: squid31: squid_radius_auth does not send identifier to RADIUS server
Message-ID:  <201101131641.p0DGfaPa097154@red.freebsd.org>
Resent-Message-ID: <201101131650.p0DGo9VZ028939@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153956
>Category:       ports
>Synopsis:       squid31: squid_radius_auth does not send identifier to RADIUS server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 13 16:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry
>Release:        8.2-PRERELEASE
>Organization:
>Environment:
FreeBSD freetm.tp-local.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Tue Jan 11 20:08:49 UTC 2011     root@freetm.tp-local.ru:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
pkg_info -xI squid
squid-3.1.10        HTTP Caching Proxy

squid_radius_auth does not send  specifyed by identifier field of config file.

Attached patch fixes this problem.

I've sent this patch to Squid-Cache.org
>How-To-Repeat:
Add identifier to radius configuration file.
Launch wireshark to sniff traffic to RADIUS server
run 
echo 'user password' | /usr/local/libexec/squid/squid_radius_auth -f "path to radius config"

>Fix:
patch appended 

Patch attached with submission follows:

--- helpers/basic_auth/squid_radius_auth/squid_rad_auth.c.orig	2011-01-13 20:05:08.000000000 +0000
+++ helpers/basic_auth/squid_radius_auth/squid_rad_auth.c	2011-01-13 20:06:19.000000000 +0000
@@ -387,6 +387,7 @@
         *ptr++ = len + 2;
         memcpy(ptr, identifier, len);
         ptr += len;
+	total_length += len + 2;
     } else {
         *ptr++ = PW_NAS_IP_ADDRESS;
         *ptr++ = 6;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101131641.p0DGfaPa097154>