Huntgroup-Name
Carsten Schulze
carsten.schulze at leuphana.de
Thu Feb 1 14:47:05 CET 2018
Hi again,
I thought the NAS-IP-Address is always the real IP of the server, but it
was not, a differnet IP was sent by the client.
> The answers are in the debug output.
>
>>> Does the input packet contain NAS-IP-Address?
>> No, i thought it is done by the huntgroup file over the == operator
> i.e. you didn't understand my question.
>
> The input packet is the Access-Request that is printed in the debug output.
>
> Does the debug output print something like "received Access-Request"?
>
> Does the debug output print a list of attributes and values after that?
>
> Is one of those attributes NAS-IP-Address?
>
> If so, what is the value of NAS-IP-Address?
ok I got it:
(0) Received Access-Request Id 1 from 192.168.102.43:55900 to
192.168.102.145:1812 length 59
(0) NAS-IP-Address = 192.168.102.43
>
> You don't need to use %{...} for attributes in "if" conditions. The examples and "unlang" documentation don't do this.
Yes, your are right. But I dont know the differences.
Works perfect now :)
(0) if (Huntgroup-Name == "myshare") {
(0) if (Huntgroup-Name == "myshare") -> TRUE
Thanks Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5565 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180201/97cfaf6c/attachment.bin>
More information about the Freeradius-Users
mailing list