Commit 92938fa2 authored by venaas's avatar venaas Committed by venaas

slight regexp example change

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@97 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 9eebebe0
......@@ -1686,7 +1686,7 @@ void addrealm(char *value, char *server) {
if (*value == '*')
debugx(1, DBG_ERR, "Regexps are now used for specifying realms, a string\nstarting with '*' is meaningless, you probably want '.*' for matching everything\nEXITING\n");
if (value[strlen(value) - 1] != '$' && value[strlen(value) - 1] != '*') {
debug(DBG_ERR, "Regexps are now used for specifying realms, you\nprobably want to rewrite this as e.g. '@example\\.com$' or '\\.com$'\nYou can even do things like '[a-n].*@example\\.com$' to make about half of the\nusers use this server. Note that the matching is case insensitive.\n");
debug(DBG_ERR, "Regexps are now used for specifying realms, you\nprobably want to rewrite this as e.g. '@example\\.com$' or '\\.com$'\nYou can even do things like '^[a-n].*@example\\.com$' to make about half of the\nusers use this server. Note that the matching is case insensitive.\n");
sleep(3);
}
realm_count++;
......
......@@ -36,7 +36,7 @@ TLSCertificateKeyPassword follow the white rabbit
#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
#"@example\.com$", "\.com$", ".*" and "[a-z].*@example\.com$".
#"@example\.com$", "\.com$", ".*" and "^[a-z].*@example\.com$".
#To treat local users separately you might try first specifying "@"
#and after that ".*".
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment