Search squid archive

change for squid_rad_auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I recently had to work with squid_rad_auth 1.07 on a Linux machine, which
needed to talk to a radius server on Solaris 8. I couldn't get the thing
to work properly, and after lots of searching I found out that there is a
difference between the ports defined for radius in /etc/services on Linux
and Solaris. On Linux, the default radius port is 1812, on Solaris it's
1645. On Linux, this port is called 'datametrics'.

So in order to avoid problems like this, I propose the following (trivial)
change to squid_rad_auth.c:

diff squid_radius_auth-1.07/squid_rad_auth.c
squid_radius_auth-1.07-joost/squid_rad_auth.c
76a77
> static char svc_name[MAXLINE] = "radius";
166a168,169
>       if (!memcmp(line, "service", 7))
>           sscanf(line, "service %s", svc_name);
343d345
<     const char *svc_name = "radius";
362c364
<           svc_name = optarg;
---
>           strcpy(svc_name, optarg);

This adds an option 'service' in the squid_rad_auth.conf file.

Joost


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux