<DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Times New Roman"><FONT size=3>Hi!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>I am using the 1.0.5<SPAN style="mso-spacerun: yes"> </SPAN>freeradius version.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Times New Roman"><FONT size=3> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>radiusd -v<BR>radiusd: FreeRADIUS Version 1.0.5, for host , built on Nov 1 2005 at 16:22:00<BR>Copyright (C) 2000-2003 The FreeRADIUS server project.<BR>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<BR>PARTICULAR PURPOSE.<BR>You may redistribute copies of FreeRADIUS under the terms of the<BR>GNU General Public License.<BR>For more information about these matters, see the file named COPYRIGHT.<BR><BR>I am trying to use regular expressions with the Group attribute, but it’s not working the way I expected.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>This is how my users file looks like:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">DEFAULT Auth-Type := Accept<BR> Fall-Through = Yes<BR><BR><BR><BR><BR>DEFAULT Group =~ "^test.*"<BR> Reply-Message = "%{0}",<BR> Fall-Through = No<BR><BR><BR><BR><BR>DEFAULT Huntgroup-Name == "as_totalcontrol"<BR> Service-Type = Framed,<BR> Framed-Protocol = PPP,<BR> Framed-IP-Netmask = </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.255/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">255.255.255.255</SPAN></A></SPAN></FONT><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">,<BR> Framed-IP-Address = </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.254/" target=_blank><SPAN lang=EN-!
US
style="mso-ansi-language: EN-US">255.255.255.254</SPAN></A></SPAN></FONT><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">,<BR> Framed-Routing = None,<BR> Framed-MTU = 1500,<BR> Reply-Message = "as_totalcontrol",<BR> Framed-Compression = Van-Jacobson-TCP-IP,<BR> Fall-Through = No<BR style="mso-special-character: line-break"><BR style="mso-special-character: line-break"></SPAN><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Times New Roman"><FONT size=3> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>First I tried a radtest with user “test” which belongs to group “test”<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">groups test1<BR>test1 : test_group_2<BR><BR>radtest -d /etc/raddb/ test1 test1 </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"> 1 hola 1 </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN></FONT><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3>Sending Access-Request of id 86 to </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:1812/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:1812</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Ar!
ial;
mso-ansi-language: EN-US"><BR><FONT size=3> User-Name = "test1"<BR> User-Password = "test1"<BR> NAS-IP-Address = </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> NAS-Port = 1<BR> Framed-Protocol = PPP<BR>rad_recv: Access-Accept packet from host </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:1812/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:1812</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>, id=86, length=27<BR> Reply-Message = "test1"<BR><BR style="mso-special-ch!
aracter:
line-break"><BR style="mso-special-character: line-break"><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>I ran freeradius in debug mode (radiusd –X)<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>This is the output:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">rad_recv: Access-Request packet from host </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:34613/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88:34613</SPAN></A></SPAN></FONT><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">, id=86, length=63<BR> User-Name = "test1"<BR> User-Password = "test1"<BR> NAS-IP-Address = </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN></FONT><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> NAS-Port = 1<BR> Framed-Protocol = PPP<BR> Processing the authorize!
section
of radiusd.conf<BR>modcall: entering group authorize for request 1<BR> modcall[authorize]: module "preprocess" returns ok for request 1<BR> rlm_realm: No '@' in User-Name = "test1", looking up realm NULL<BR> rlm_realm: Found realm "NULL"<BR> rlm_realm: Proxying request from user test1 to realm NULL<BR> rlm_realm: Adding Realm = "NULL"<BR> rlm_realm: Authentication realm is LOCAL.<BR> modcall[authorize]: module "suffix" returns noop for request 1<BR> users: Matched entry DEFAULT at line 71<BR> users: Matched entry DEFAULT at line 123<BR>radius_xlat: 'test1'<BR> modcall[authorize]: module "files" returns ok for request 1<BR>modcall: group authorize returns ok for request 1<BR> rad_check_password: Found Auth-Type Accept<BR> rad_check_password: Auth-Type = Accept, accepting the user<BR>radius_xlat: 'test1'<BR>Sending Access-Accept of id 86 to </FONT></S!
PAN><SPAN
style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:34613/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:34613</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Reply-Message = "test1"<BR>Finished request 1<BR>Going to the next request<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>Then I tried this:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">groups paraprueba<BR>paraprueba : test<BR><BR><BR>radtest -d /etc/raddb/ paraprueba parapeuba </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"> 1 hola 1 </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN></FONT><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3>Sending Access-Request of id 98 to </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:1812/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:1812</FONT></SPAN></A></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> User-Name = "paraprueba"<BR> User-Password = "parapeuba"<BR> NAS-IP-Address = </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> NAS-Port = 1<BR> Framed-Protocol = PPP<BR>rad_recv: Access-Accept packet from host </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:1812/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:1812</FONT></SPAN></A></SPAN><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">, id=98, length=79<BR> Service-Type =
Framed-User<BR> Framed-Protocol = PPP<BR> Framed-IP-Netmask = </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.255/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">255.255.255.255</SPAN></A></SPAN></FONT><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Framed-IP-Address = </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.254/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>255.255.255.254</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Framed-Routing = None<BR> Framed-MTU = 1500<BR> Reply-Message = "as_totalcontrol"<BR> Framed-Compression = Van-Jacobson-TCP-IP<BR><BR><BR>This is radiusd
output:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">rad_recv: Access-Request packet from host </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:34613/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88:34613</SPAN></A></SPAN></FONT><FONT size=3><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US">, id=98, length=68<BR> User-Name = "paraprueba"<BR> User-Password = "parapeuba"<BR> NAS-IP-Address = </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://172.20.0.88/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US">172.20.0.88</SPAN></A></SPAN></FONT><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> NAS-Port = 1<BR> Framed-Protocol = PPP<BR> Processing the !
authorize
section of radiusd.conf<BR>modcall: entering group authorize for request 2<BR> modcall[authorize]: module "preprocess" returns ok for request 2<BR> rlm_realm: No '@' in User-Name = "paraprueba", looking up realm NULL<BR> rlm_realm: Found realm "NULL"<BR> rlm_realm: Proxying request from user paraprueba to realm NULL<BR> rlm_realm: Adding Realm = "NULL"<BR> rlm_realm: Authentication realm is LOCAL.<BR> modcall[authorize]: module "suffix" returns noop for request 2<BR> users: Matched entry DEFAULT at line 71<BR> users: Matched entry DEFAULT at line 147<BR> modcall[authorize]: module "files" returns ok for request 2<BR>modcall: group authorize returns ok for request 2<BR> rad_check_password: Found Auth-Type Accept<BR> rad_check_password: Auth-Type = Accept, accepting the user<BR>radius_xlat: 'as_totalcontrol'<BR>Sending Access-Accept of id 98 to </FONT></SPA!
N><SPAN
style="FONT-FAMILY: Arial"><A href="http://172.20.0.88:34613/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>172.20.0.88:34613</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Service-Type = Framed-User<BR> Framed-Protocol = PPP<BR> Framed-IP-Netmask = </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.255/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>255.255.255.255</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Framed-IP-Address = </FONT></SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://255.255.255.254/" target=_blank><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3>255.255.255.254</FONT></SPAN></A></SPAN><SPAN lang=EN-US style="FONT-FAMI!
LY:
Arial; mso-ansi-language: EN-US"><BR><FONT size=3> Framed-Routing = None<BR> Framed-MTU = 1500<BR> Reply-Message = "as_totalcontrol"<BR> Framed-Compression = Van-Jacobson-TCP-IP<BR>Finished request 2<BR><BR>It seems as if the regular expression was matching the User–Name attribute instead of the Group attribute.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>I also tried using regular expressions with the User-Name attribute and they worked as expected.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>Is it possible to use regular expressions with Group?<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>And if it is so what am I doing wrong?<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>Thanks in advance.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: Arial; mso-ansi-language: EN-US"><FONT size=3>Kind regards<SPAN style="mso-spacerun: yes"> </SPAN></FONT><o:p></o:p></SPAN></P></DIV></DIV><p>
<hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>
<p>
<hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>