projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2802a
)
Convert Class to string before attempting to do a pattern match
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Sun, 3 Jul 2011 10:01:34 +0000
(12:01 +0200)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Sun, 3 Jul 2011 10:01:34 +0000
(12:01 +0200)
raddb/policy.conf
patch
|
blob
|
history
diff --git
a/raddb/policy.conf
b/raddb/policy.conf
index
e3b5e9f
..
79899a0
100644
(file)
--- a/
raddb/policy.conf
+++ b/
raddb/policy.conf
@@
-39,9
+39,9
@@
policy {
# or the client roams to a different 'port' whilst maintaining its initial authentication
# session (Common in a wireless environment).
#
- if(
Class =~ /auth_id:[0-9a-f]{32}
/i) {
+ if(
"%{string:Class}" =~ /auth_id:([0-9a-f]{32})
/i) {
update request {
- Acct-Unique-Session-Id := "%{md5:%{
Class
}%{Acct-Session-ID}}"
+ Acct-Unique-Session-Id := "%{md5:%{
1
}%{Acct-Session-ID}}"
}
}
#