(RADIATOR) RegExp negation
Hugh Irvine
hugh at open.com.au
Mon Feb 7 23:32:56 CST 2005
Hello Bradely -
As Radiator matches Handlers, it is usually easier to turn the
condition around:
# match 207.41.125.253
<Handler ..... = 207.41.125.253>
# whatever
.....
</Handler>
# match everything else
<Handler>
# whatever
......
</Handler>
If this is to match certain client clauses, it is usually much clearer
using Identifiers in the Client clauses:
# define Client clauses with Identifiers
<Client 1.1.1.1>
Identifier SomethingMeaningful
.....
</Client>
<Client 2.2.2.2>
Identifier SomethingMeaningful
.....
</Client>
<Client 3.3.3.3>
Identifier SomethingElseUseful
.....
</Client>
<Client 4.4.4.4>
Identifier SomethingElseUseful
.....
</Client>
......
# define Handlers
<Handler Client-Identifier = SomethingMeaningful>
.....
</Handler>
<Handler Client-Identifier = SomethingElseUseful>
.....
</Handler>
<Handler>
.....
</Handler>
regards
Hugh
On 8 Feb 2005, at 01:47, Bradley Fair wrote:
> How can I use a regular expression to match anything but
> “207.41.125.253”?
>
NB:
Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive
(www.open.com.au/archives/radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list