MAC Authentication Queries
FreeRAD
yetifreerad at gmail.com
Thu Sep 26 12:58:53 UTC 2024
Hi Alan,
Thank you for the reply here. I have put the closing braces only around the
Authorize section but this issue is still occurring.
I'm not sure what you are referring to about commenting out the rest of the
Authorize section?
Furthermore, there are plenty of other "if" statements in the various
virtual server files that don't also have "else"s, so what is the
requirement for it in this situation? I have tested without the else and it
seems to work ok but it would be useful to know the implications of this.
Many thanks
On Thu, Sep 26, 2024 at 12:49 PM Alan DeKok <aland at deployingradius.com>
wrote:
> On Sep 26, 2024, at 10:26 AM, FreeRAD <yetifreerad at gmail.com> wrote:
> > But seemingly whenever I enclose the rest of my Authorize config within
> the
> > final 'else' statement I get an error:
> >
> > */etc/freeradius/3.0/sites-enabled/default[526]: Failed to find
> "Autz-Type"
> > as a module or policy./etc/freeradius/3.0/sites-enabled/default[526]:
> > Please verify that the configuration exists in
>
> You didn't include the rest if the authorize section within the "else"
> statement. You included huge amounts more of the server configuration.
>
> Don't do that. Use an editor which shows you matching braces. Find
> the start:
>
> authorize {
>
> Then find the end:
>
> }
>
> add the extra brace before that one.
>
> It also helps to understand the configuration. Are you sure that you
> want to comment out the rest of the "authorize" section?
>
> > My question is, is removing the else going to cause issues, and if so,
> how
> > can I get around my error?
>
> Make sure that the configuration file has the correct syntax / format.
> You can't just add "}" in random places and expect it to work.
>
> Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list