regex matching and string >1023 Bytes

Alan DeKok aland at deployingradius.com
Fri May 27 13:09:08 CEST 2011


Stefan Winter wrote:
> that buffer expansion doesn't seem to be sufficient: if I place the
> matching text near the beginning, it matches. If it's near the end, it
> doesn't. There's a couple of buffer limits on 1024 in xlat.c ; maybe
> they need to be expanded, too?

  Nah.  Using the "master' branch, do "git pull", and see "man unlang".

Access-Request
	User-Name = "bob"
	User-Password = "bob"
	Filter-Id = "hello"
	Filter-Id += "bar"


authorize {
	...
	foreach Filter-Id {
		update reply {
		       Reply-Message += "%{Foreach-Variable-0}"
		}
	}
	...

}

Access-Accept
	Reply-Message = "hello"
	Reply-Message = "bar"

  That's a much better way to do it.  :)

  That's not going into 2.1.x, though.

  Alan DeKok.



More information about the Freeradius-Devel mailing list