Custom Reply-Message for Simultaneous-Use

Kostas Kalevras kkalev at noc.ntua.gr
Tue Jun 27 13:22:12 CEST 2006


On Tue, 27 Jun 2006, Josh Howlett wrote:

> Hi,
>
> I need to be able to return a user-specific Reply-Message attribute in the 
> event of simultaneous-use being detected. In auth.c, this message is 
> currently hard-coded.
>
> I'm considering the following approach: if sim-use is detected, look for a 
> new attribute in the reply items list whose value is the custom message. If 
> it exists, use it for the Reply-Message; if not, use the existing hard-coded 
> value.
>
> Is this a sensible approach? If not, what should I do?

Better, create a new configuration directive which will hold the message to 
send and use that in auth.c. xlat() the message before using it so that you can 
perform almost any operation you want before sending back the message like:
sim_use_message = "You are already logged in: %{My-Attribute}"

>
> Many thanks, josh.
>
> Josh Howlett, Networking Specialist, University of Bristol.
> email: josh.howlett at bristol.ac.uk | phone: +44 (0)7867 907076 | interal: 7850
>
>
>
> -List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/devel.html

--
Kostas Kalevras		Network Operations Center
kkalev at noc.ntua.gr	National Technical University of Athens, Greece
Work Phone:		+30 210 7721861
'Go back to the shadow'	Gandalf



More information about the Freeradius-Devel mailing list