Hello, request_data_get() deletes the data from the request after retrieving it, therefore it is not possible to use a regex value e.g. %{1} in rlm_policy twice like: request = { User-Name := "%{1}" Nas-Identifier := "%{1}" } What would be the best way to change this or work around it? Regards Stephan -- Stephan Jaeger <stephan.jaeger@ewetel.de> EWE TEL GmbH
Stephan Jaeger <stephan.jaeger@ewetel.de>wrote:
request_data_get() deletes the data from the request after retrieving it, therefore it is not possible to use a regex value e.g. %{1} in rlm_policy twice like:
Ah, that would be a bug. The solution is probably to add a "request_data_reference", which returns a reference, but doesn't free the data. Then make the regex stuff call that. Alan DeKok.
Hi, On Do, 2006-01-26 at 12:35 -0500, Alan DeKok wrote:
The solution is probably to add a "request_data_reference", which returns a reference, but doesn't free the data. Then make the regex stuff call that.
Please have a look at the attached patch. Stephan Jaeger -- Stephan Jaeger <stephan.jaeger@ewetel.de> EWE TEL GmbH
participants (2)
-
Alan DeKok -
Stephan Jaeger