문제

After looking into dozens of wiki's info pages and other resources, i'm unable to find a way on displaying the expiration date to a user.

My reply message: Reply-Message := "Your account has expired on %{Expiration} go to ab.com for extending!" Doesnt work. I can't seem to expand the variable Expiration in my database:

my expiration label is: Expiration := 05 Jun 2012 02:00.

The expiration mod however does work, but i just can't show the expiration date. Is there any way to expand "custom database variables" in a radius environment, with freeradius?

도움이 되었습니까?

해결책

You need to qualify the attribute with a list. There are three lists in the server, request, control, reply.

The use of request (default for unqualified attributes) and reply can be inferred from their names. Control (also called 'check' in older modules) holds attributes which affect the behaviour of the modules. Expiration is a control attribute so you need to qualify expansions involving it with control:

Reply-Message := "Your account has expired on %{control:Expiration} go to ab.com for extending!"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top