Hello. 

Can i send in reply data some values, that i get from authenticated 
user?

my users file is :

ora1521 Auth-Type := Local, User-Password == "dupa.8"
        User-Name = ora1521,
        Reply-Message = "NAS-IP-Address : %n",
        NAS-IP-Address = "%n",
        Fall-Through = Yes

And when i do:
/usr/local/bin/radclient -x -f bin/authenticate localhost:6969 auth 
testing123

where authenticate is:
User-Name=ora1521
User-Password=dupa.8
NAS-IP-Address=244.244.244.244
Framed-IP-Address=10.129.8.134
Acct-Session-Id=1

i get:

Sending Access-Request of id 19 to 127.0.0.1:6969
        User-Name = "ora1521"
        User-Password = "dupa.8"
        NAS-IP-Address = 244.244.244.244
        Framed-IP-Address = 10.129.8.134
        Acct-Session-Id = "1"
rad_recv: Access-Accept packet from host 127.0.0.1:6969, id=19, length=69
        User-Name = "ora1521"
        Reply-Message = "NAS-IP-Address : 244.244.244.244"
        NAS-IP-Address = 255.255.255.255

As we can see, when we use %n (or %{NAS-IP-Address}, there is not 
diffrence) in Reply-Message, we get sent by user NAS-IP-Address, but when 
we use it in NAS-IP-Address, i getstrange ip address.
Can i set reply NAS-IP-Address as sent NAS-IP-Address? 

Regards, Marek Nowicki.




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to