Hello,<br><br>I'm working with freeradius 2.1.8 and I want to return an attribute when eexpiration module return 'userlock'.<br><br>I try to add the item in expiration module:<br><br>/etc/freeradius# cat modules-enabled/expiration <br>
# -*- text -*-<br>#<br># $Id$<br><br>expiration {<br> Reply-Message = "LA CUENTA HA EXPIRADO PARA %{%{Stripped-User-Name}:-%{User-Name}}"<br> Codigo-Reject := Cuenta-Expirada<br>}<br><br>But it doesn't work.<br>
<br>I also try using unlang in authorize section:<br><br>authorize {<br><br>. . .<br><br> expiration<br> if (userlock){<br> update reply {<br> Codigo-Reject := Cuenta-Expirada<br> }<br> }<br>
pap<br>}<br><br>My debug info:<br><br>rad_recv: Access-Request packet from host XXXX port 59252, id=177, length=71<br> User-Name = "<a href="mailto:prueba@temp.XXX.es">prueba@temp.XXX.es</a>"<br> User-Password = "prueba"<br>
NAS-IP-Address = 127.0.1.1<br> NAS-Port = 0<br>server XXX {<br><br>. . . <br>[expiration] Checking Expiration time: '1 Jun 2010'<br>[expiration] Account has expired<br>[expiration] expand: Password Has Expired -> Password Has Expired <br>
++[expiration] returns userlock<br>} <br>Using Post-Auth-Type Reject<br>+- entering group REJECT {...}<br><br>. . . <br><br>Sending Access-Reject of id 177 to 158.49.247.199 port 59252<br> Reply-Message = "Password Has Expired\r\n"<br>
<br><br>Somebody can help me. Thak you and sorry for my english.<br><br><br><br>____________________<br><br> Ana Gallardo Gómez<br>____________________<br>