From 92938fa2d2416998df899406e19aaa074bc22dbb Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 23 May 2007 08:31:44 +0000 Subject: slight regexp example change git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@97 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- radsecproxy.conf-example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radsecproxy.c b/radsecproxy.c index 079aaa8..76a4860 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -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++; diff --git a/radsecproxy.conf-example b/radsecproxy.conf-example index 6e1c055..9facde7 100644 --- a/radsecproxy.conf-example +++ b/radsecproxy.conf-example @@ -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 ".*". -- cgit v1.2.3