summaryrefslogtreecommitdiff
path: root/radsecproxy.conf-example
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-29 12:27:33 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-29 12:27:33 +0000
commitf83c4c45005f94193f146ff8460c22644f008f75 (patch)
treefab9dd297c2f3a368988dad89628c7efa2f27bd2 /radsecproxy.conf-example
parent25cada62234909a87658970d0066014b288a43d7 (diff)
support quoting of values, realm matching literal or regexp with / prefixing a regexp
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@108 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.conf-example')
-rw-r--r--radsecproxy.conf-example20
1 files changed, 12 insertions, 8 deletions
diff --git a/radsecproxy.conf-example b/radsecproxy.conf-example
index 27cc176..6cda59e 100644
--- a/radsecproxy.conf-example
+++ b/radsecproxy.conf-example
@@ -33,12 +33,14 @@ TLSCertificateKeyPassword follow the white rabbit
#also the lines above may be in any order, except that a realm
#can only be configured to use a server that is previously configured.
-#Also note that case insensitive regexp is used for realms, matching
-#the entire username string. The matching is done in the order the
-#realms are specified, using the first match found. Some examples are
+#A realm can be a literal domain name, * which matches all, or a
+#regexp. A regexp is specified by the character prefix /
+#For regexp we do case insensitive matching of the entire username string.
+#The matching of realms is done in the order they are specified, using the
+#first match found. Some examples are
#"@example\.com$", "\.com$", ".*" and "^[a-z].*@example\.com$".
#To treat local users separately you might try first specifying "@"
-#and after that ".*".
+#and after that "*".
client 2001:db8::1 {
type tls
@@ -57,7 +59,7 @@ server 127.0.0.1 {
type UDP
secret secret
}
-realm @eduroam\.cc$ {
+realm eduroam.cc {
server 127.0.0.1
}
@@ -73,12 +75,14 @@ server radius.example.com {
# statusserver is optional, can be on or off. Off is default
}
-realm @example\.com$ {
+# Equivalent to example.com
+realm /@example\.com$ {
server 2001:db8::1
}
-realm \.com$ {
+realm /\.com$ {
server 2001:db8::1
}
-realm .* {
+# The realm below is equivalent to /.*
+realm * {
server radius.example.com
}