<br>Hello again,<br><br>eventually the solution for me is:<br><br>--> MYSQL<br><br>mysql> select * from radcheck where username = "prueba";<br>+-----+----------+--------------------+----+-------------+<br>| id  | username | attribute          | op | value       |<br>
+-----+----------+--------------------+----+-------------+<br>| 228 | prueba   | Cleartext-Password | := | prueba      | <br>| 227 | prueba   | Expiration         | := | 10 Jun 2010 | <br>| 231 | prueba   | Expiration-Init    | := | 20100604    | <br>
+-----+----------+--------------------+----+-------------+<br>3 rows in set (0.00 sec)<br><br>mysql> select * from radreply where username = "prueba";<br>+-----+----------+--------------+----+---------------------+<br>
| id  | username | attribute    | op | value               |<br>+-----+----------+--------------+----+---------------------+<br>+-----+----------+--------------+----+---------------------+<br>0 rows in set (0.00 sec)<br><br>
--> /etc/freeradius/sites-enable/default<br><br>authorize {<br>
...<br>
        switch "%{Realm}" {<br>
                case '<a href="http://temp.XXX.es">temp.XXX.es</a>' {<br>
                        sql<br>
                        if ("%D" < "%{control:Expiration-Init}"){<br>
                                reject<br>
                        }<br>
                }<br>
<br><br>Thanks<br>
<br><br>____________________<br><br>  Ana Gallardo Gómez<br>____________________<br>