/Translate-characters-tp5685645p5694151.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Xbert_badstuber wrote:
> Now it works, I can change the attribute to a static value.
Uh... no. The attribute can use the results of the regex. See "man
unlang".
> Unfortunately now
> I wasn't all clear in my first topic.
> My question is if there is any solution for the characters to be chan
its REGEX - you can do whatever you want with the right search/replace
functions. I would advise
that you do some reading up of REGEX - plenty of free resources on the web and
a few good books
from the usual publishers.
alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/u
to be dynamic and the characters to
remain static.
Is there any solution for our problem?
--
View this message in context:
http://freeradius.1045715.n5.nabble.com/Translate-characters-tp5685645p5691176.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subs
Xbert_badstuber wrote:
> Error: Consecutive conditions at (.)/(.):(.*)$/)
It's a regex error.
> if (NAS-Port-Id =~ /^(.)/(.)/(.):(.*)$/) {
/foo/bar/baz is wrong
You need something like:
/^(.)\/(.)\/(.):(.*)$/
i.e. escape the internal '/' characters.
Alan DeKok.
-
List inf
}
Any ideas?
Regards, Badstuber.
--
View this message in context:
http://freeradius.1045715.n5.nabble.com/Translate-characters-tp5685645p5690962.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mon, May 7, 2012 at 4:52 PM, Xbert_badstuber wrote:
> Thanks Alan for the quick and helpful answer.
> I have just one problem now, in which .conf file should I write/place the
> regex? I have tried some files, but none of them have change the Nas-port-id
> value. I have try to place it in modul
efault.
--
View this message in context:
http://freeradius.1045715.n5.nabble.com/Translate-characters-tp5685645p5690673.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Xbert_badstuber wrote:
> Is there anything I can do in the freeradius to change the characters to
> different ones? Example: To make “/” as “-“ and “:” as “_”. So the
> NAS-Port-ID would look like “1-1-4_1001.129” instead. Is it possible to
> translate characters in Freeradius? If poss
user when im trying to
authenticate users.
Is there anything I can do in the freeradius to change the characters to
different ones? Example: To make “/” as “-“ and “:” as “_”. So the
NAS-Port-ID would look like “1-1-4_1001.129” instead. Is it possible to
translate characters in Freeradius? If poss
10 matches
Mail list logo