Hello Alan, all, thanks for that quick lesson :-) I stand corrected; and with the right ordering, things are now working as they should. I did wonder a few times why that attribute RESTENA-Service-Type wasn't properly populated in some cases :-) But no bad things happened, just things being logged into a different directory than expected. Thanks again, Stefan Am 21.06.2011 11:53, schrieb Alan DeKok:
Stefan Winter wrote:
a similar issue with the config parser here...
The following worked nicely in 2.1.10, but barks with "Unexpected text else" (and with the obvious change to elsif, "Unexpected text elsif").
if ( "%{NAS-Identifier}" == "ejabberd" ) { update request { RESTENA-Service-Type = "Staff-Jabber" } } else Except that's wrong... it doesn't do what you want! The "else" is ignored.
But... what's wrong with that? How would I have to fix the syntax to be acceptable? $ man unlang :)
Everything needs to go on its own line:
if (...) { ... } elsif (...) { ... }
Using "} elseif" won't work. The "elsif" will *always* be ignored.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Stefan WINTER Ingenieur de Recherche Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg Tel: +352 424409 1 Fax: +352 422473