I tried to set the 'Session-Timeout' attribute in the access-accept
reply packet.
It works fine if the authorize section in radiusd.conf uses 'files'
and this attribute is defined in 'users', i.e. I can see the AV pair
sent back by the server.

But if I set this attribute in radreply, I do not see it being sent
in the reply even in the server debug message.

My suspicion is that the data type in the radreply of 'Value' is
varchar, while the data type for Session-Timeout is defined as
an integer in the protocol. 

How do I set this value in the DB?

In the 'users' I have

Alex    Auth-Type := Local, User-Password == "alextest"
        Service-Type := Outbound-User, Session-Timeout = 300

and in the DB I have

mysql> select * from radreply;
+----+----------+-----------------+----+----------------+
| id | UserName | Attribute       | op | Value          |
+----+----------+-----------------+----+----------------+
|  1 | Alex     | Service-Type    | := | Outbound-User  |
|  2 | Alex     | Session-Timeout | := | 300            |
+----+----------+-----------------+----+----------------+
2 rows in set (0.00 sec)



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

Reply via email to