Hi All!
I have a trouble with pattern matching by checkval module.
For example, i need to access all clients who has Calling-Station-Id 11
digits length, begining with "6" or "7", with "123" at the second
position and "8" or "19" after "123" (i.e. on fifth position). Also i
need control that other positions are occupied by digits, not by
characters.
I.e.
61238xxxxxx
71238xxxxxx
612319xxxxx
712319xxxxx
I use checkval module for this.
In the user database (LDAP) i store next value defining needing regular
expression. (Mysteriously "([0-9]{5})" does not working... So i use "."
against [0-9] class with interval {})
"=~ ^[6|7]123[8.|19].....$"
I`ve read POSIX regular expression routines manuals and didn`t find any
mistakes in my pattern.
But checkval module rejects numbers in any cases :-(
It would be wonderful if somebody has explained me my mistakes.
See logs please:
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Item Name:
Calling-Station-Id, Value: 61238123456
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Value Name:
Calling-Station-Id, Value: ^[6|7]123[8.|19].....$
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Doing regex
Wed Sep 17 17:37:50 2003 : Debug: modcall[authorize]: module
"checkval" returns reject
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Item Name:
Calling-Station-Id, Value: 61231912345
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Value Name:
Calling-Station-Id, Value: ^[6|7]123[8.|19].....$
Wed Sep 17 17:37:50 2003 : Debug: rlm_checkval: Doing regex
Wed Sep 17 17:37:50 2003 : Debug: modcall[authorize]: module
"checkval" returns reject
Thank`s
Roman
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html