unlang regex matching

Scott McLane Gardner sgardne at uark.edu
Tue Mar 6 21:47:36 CET 2012


I'm having trouble getting unlang to match a string inside a larger
string. I have a script that outputs a string of domain groups, like this:

DOMN\Domain Users 2 DOMN\Wireless Users 2 DOMN\STUsers 2 DOMN\WOCL
Wireless DOMN\WOCL Staff

I have a unlang conditional written like this which I think should match,
but is not matching:
	
	If (`/bin/sh /path/to/script` =~ /WOCL\sWireless/) {
		Do things
	}
	Else {
		Do other things
	}

Can anyone tell me why my regex is not matching?



More information about the Freeradius-Users mailing list