Thanks. We installed our freeradius about 6 months ago.<div>But still, the 'unlang' is giving me some trouble, I can't start freeradius, probably the condition below is wrong, something with the syntax?</div><div>
<br></div><div>This is what freeradius is complaining about:</div><div><br></div><div><div>/etc/freeradius/users[99]: Parse error (reply) for entry DEFAULT: expecting '=' <font class="Apple-style-span" color="#FF0000"><------ this in my users file (line 99) is exactly where the condition (if) starts</font></div>
<div>Errors reading /etc/freeradius/users</div><div>radiusd.conf[1070]: files: Module instantiation failed. </div><div>radiusd.conf[1856] Unknown module "files".</div><div>radiusd.conf[1792] Failed to parse authorize section. </div>
<div>root@mars:/etc/freeradius# </div></div><div><br><div><br></div><div>And here is mu unlang section:</div><div><br></div><div><div>DEFAULT User-Name =~ "^([aA-zZ]+)-([aA-zZ]+)$", Cleartext-Password := "csetestp"</div>
<div> Alc-Subsc-ID-Str := "%{NAS-Port-Id}",</div><div> Alc-Subsc-Prof-Str := "%{1}",</div><div> Alc-SLA-Prof-Str := "%{2}",</div><div> Alc-MSAP-Serv-Id := "100",</div>
<div> Alc-MSAP-Policy := "msaps",</div><div> Alc-Default-Router := 20.0.0.1,</div><div> Framed-IP-Netmask := 255.255.0.0,</div><div> Session-Timeout := 600,</div><div>
<font class="Apple-style-span" color="#FF0000"> if (Alc-Subsc-Prof-Str == basic) {</font></div><div><font class="Apple-style-span" color="#FF0000"> Framed-IP-Address := 21.0.0.1,</font></div><div>
<font class="Apple-style-span" color="#FF0000"> }</font></div><div> Fall-Through = Yes</div><div>DEFAULT NAS-Port-Id =~ "^([^:]+):"</div><div> Alc-MSAP-Interface := "port-%{1}"</div>
</div><div><br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 11:17 AM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Marlon Duksa wrote:<br>
> Sorry - by my posting I meant to imply that 'unlang' module might be<br>
> required but not installed, do I need to install it, is it part of<br>
> original FR installation, etc.<br>
<br>
</div> It's installed as part of the normal server installation.<br>
<br>
If you don't have it, you are running a version of the server that is<br>
over 2 years old.<br>
<br>
Upgrade.<br>
<div><div></div><div class="h5"><br>
Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div></div>