(RADIATOR) group regex

Mike McCauley mikem at open.com.au
Tue Jun 5 22:40:31 CDT 2001


--- Forwarded mail from owner-radiator at open.com.au

From: owner-radiator at open.com.au
Date: Mon, 4 Jun 2001 14:28:53 -0500
To: radiator-approval at open.com.au
Subject: BOUNCE radiator at open.com.au:    Non-member submission from ["Nihal"
<nihal at cybermesa.com>]

>From mikem at server1.open.com.au Mon Jun  4 14:28:53 2001
Received: from mail.cybermesa.com (root at mail.cybermesa.com [198.59.109.2])
	by server1.open.com.au (8.11.0/8.11.0) with ESMTP id f54JSqD19069
	for <radiator at open.com.au>; Mon, 4 Jun 2001 14:28:53 -0500
Received: from niftygear ([209.12.74.121])
	by mail.cybermesa.com (8.9.3/8.9.3) with SMTP id PAA24763
	for <radiator at open.com.au>; Mon, 4 Jun 2001 15:24:41 -0600 (MDT)
Message-ID: <002901c0ed45$71ea22f0$1701a8c0 at niftygear>
From: "Nihal" <nihal at cybermesa.com>
To: <radiator at open.com.au>
Subject: group regex
Date: Mon, 4 Jun 2001 15:26:48 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0026_01C0ED0A.C5713340"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000

This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C0ED0A.C5713340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

We currently using radiator to validate based on the users Unix group.
and have several entries in the users file like this -

DEFAULT Auth-Type =3D System, Group =3D shell
        Service-Type =3D Login-User,
        Login-IP-Host =3D 123.123.123.123,
        Login-Service =3D Telnet

DEFAULT Auth-Type =3D System, Group =3D aux-dial, Simultaneous-Use =3D 1
        Service-Type =3D Framed-User,
        Framed-Protocol =3D PPP,
        Framed-IP-Netmask =3D 255.255.255.255,
        Framed-Routing =3D None,
        Framed-MTU =3D 1500,
        Framed-Compression =3D Van-Jacobson-TCP-IP,

what has come up is that there are groups named simlarily that we want =
to react the
same without having to put an entry for each in the users file.

Instead of putting:

DEFAULT Auth-Type =3D System, Group =3D shell
        Service-Type =3D Login-User,
        Login-IP-Host =3D 123.123.123.123,
        Login-Service =3D Telnet

DEFAULT Auth-Type =3D System, Group =3D shell-other
        Service-Type =3D Login-User,
        Login-IP-Host =3D 123.123.123.123,
        Login-Service =3D Telnet

would it be possible to do something like this?

DEFAULT Auth-Type =3D System, Group =3D /^shell/
        Service-Type =3D Login-User,
        Login-IP-Host =3D 123.123.123.123,
        Login-Service =3D Telnet

so that it would match all groups that start with the word shell? Or =
whatever other
standard perl regex we came up with?

Thanks for the help,
Nihal

------=_NextPart_000_0026_01C0ED0A.C5713340
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>We currently using radiator to validate =
based on=20
the users Unix group.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and have several entries in the users =
file like=20
this -</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>DEFAULT Auth-Type =3D System, Group =3D =

shell<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Service-Type =3D=20
Login-User,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Login-IP-Host =
=3D=20
123.123.123.123,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Login-Service =3D=20
Telnet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>DEFAULT Auth-Type =3D System, Group =3D =
aux-dial,=20
Simultaneous-Use =3D 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Service-Type=20
=3D Framed-User,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Framed-Protocol =3D=20
PPP,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Framed-IP-Netmask =3D =

255.255.255.255,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Framed-Routing =3D=20
None,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Framed-MTU =3D=20
1500,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Framed-Compression =
=3D=20
Van-Jacobson-TCP-IP,<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>what has come up is that there are =
groups named=20
simlarily that we want to react the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>same without having to put an entry for =
each in the=20
users file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Instead of putting:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>DEFAULT Auth-Type =3D System, Group =3D =

shell<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Service-Type =3D=20
Login-User,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Login-IP-Host =
=3D=20
123.123.123.123,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Login-Service =3D=20
Telnet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>DEFAULT Auth-Type =3D System, Group =3D =

shell-other<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Service-Type =
=3D=20
Login-User,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Login-IP-Host =
=3D=20
123.123.123.123,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Login-Service =3D=20
Telnet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>would it be possible to do =
something like=20
this?</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>
<DIV><FONT face=3DArial size=3D2>DEFAULT Auth-Type =3D System, Group =3D =

/^shell/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Service-Type =3D=20
Login-User,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Login-IP-Host =
=3D=20
123.123.123.123,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Login-Service =3D=20
Telnet</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>so that it would match all groups that start with =
the word=20
shell? Or whatever other</FONT></DIV>
<DIV><FONT size=3D2>standard perl regex we came up with?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks for the help,</FONT></DIV>
<DIV><FONT size=3D2>Nihal</FONT></DIV></DIV></FONT></BODY></HTML>

------=_NextPart_000_0026_01C0ED0A.C5713340--




---End of forwarded mail from owner-radiator at open.com.au

-- 
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 etc etc 
on Unix, Win95/8, 2000, NT, MacOS 9, MacOS X
===
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