2.1.12 bug/change in behaviour - un-named server {} blocks no longer work?
All, For a long time, I have had a config with this: sites-enabled/foo: listen { ... } server { authorize { .. } } sites-enabled/oldfoo: client xxx { virtual_server = oldfoo } server oldfoo { authorize { .. } } That is, an un-named virtual server {} block with the config in it, and an older block which certain clients are hard-coded to. 2.1.12 seems to not process this config; it seems to completely ignore the un-named virtual server config: server { # from file /etc/raddb/macauth.conf modules { } # modules } # server ...and thus nothing works. AFAICT this is a change from 2.1.10/11 (although I was always running a "pre-release" i.e. a known-good commit) Removing the un-named: server { } enclosing blocks makes everything work again. I haven't had time to hunt down the commit which might have changed this, but just a heads-up.
Phil Mayers wrote:
2.1.12 seems to not process this config; it seems to completely ignore the un-named virtual server config:
Hmm.. OK
...and thus nothing works. AFAICT this is a change from 2.1.10/11 (although I was always running a "pre-release" i.e. a known-good commit)
Weird...
Removing the un-named:
server { }
enclosing blocks makes everything work again.
I haven't had time to hunt down the commit which might have changed this, but just a heads-up.
I've pushed a fix <sigh> Alan DeKok.
Ho Phil, Could you explain the interest of un-named server ? Best regards, Fred
Fred MAISON wrote:
Ho Phil, Could you explain the interest of un-named server ?
The "authorize", etc. sections should really be inside of a "server" block. It will make future functionality easier to add. Alan DeKok.
On 30 Sep 2011, at 07:58, Fred MAISON wrote:
Ho Phil, Could you explain the interest of un-named server ?
It's the default server for anything in clients.conf and the listen section in radiusd.conf. It's mainly in there for backwards compatibility... -Arran Arran Cudbard-Bell a.cudbardb@freeradius.org Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !
participants (4)
-
Alan DeKok -
Arran Cudbard-Bell -
Fred MAISON -
Phil Mayers