Version 2.1.11 has been released
Stefan Winter
stefan.winter at restena.lu
Tue Jun 21 13:34:28 CEST 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110621/1ca0a9f2/attachment.pgp>
More information about the Freeradius-Users
mailing list