Fwd: (RADIATOR) radiator 3.6 - patch for "Group" configuration parameter

Mike McCauley mikem at open.com.au
Tue Jul 15 01:39:40 CDT 2003


Hello Randy,

thanks for the patch.
It has been applied for the next release, and a patched version of radiusd is 
now available in the 3.6 patches area on the web site.

Thanks again.

Cheers.

On Tue, 15 Jul 2003 04:34 pm, Mike McCauley wrote:
> ----------  Forwarded Message  ----------
>
> Subject: (RADIATOR) radiator 3.6 - patch for "Group" configuration
> parameter Date: Wed, 2 Jul 2003 18:19:34 -0700
> From: "Brown, Randy" <Randy.Brown at cw.com>
> To: <radiator at open.com.au>
>
> As received, Radiator 3.6 does not allow the effective gid of the radiusd
>  process to be set using a symbolic group name. Only a numeric gid works.
>  Here is a patch to fix:
>
> *** radiusd-	Thu Jul  3 00:30:42 2003
> --- radiusd	Thu Jul  3 00:31:39 2003
> ***************
> *** 495,501 ****
>       if (defined $config->{Group})
>       {
>   	my $gid = $config->{Group};
> ! 	$gid = (getpwnam($config->{Group}))[2]
>   	    if ($config->{Group} !~ /^\d+$/);
>   	if (defined $gid)
>   	{
> --- 495,501 ----
>       if (defined $config->{Group})
>       {
>   	my $gid = $config->{Group};
> ! 	$gid = (getgrnam($config->{Group}))[2]
>   	    if ($config->{Group} !~ /^\d+$/);
>   	if (defined $gid)
>   	{
>
> ---
> Randy Brown
> Principal Security Engineer
> Cable & Wireless
> www.cw.com
>
> email		randy.brown at cw.com
> telephone	+1-510-749-7035
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
>
> -------------------------------------------------------

-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP etc on Unix, Windows, MacOS etc.

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list