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

Brown, Randy Randy.Brown at cw.com
Wed Jul 2 20:19:34 CDT 2003


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.


More information about the radiator mailing list