Thank`s Alan, but in my opinion this pattern does not match 11 digits
length numbers exactly...
And actually round brackets are not accepting by checkval (by the way,
why???)
I.e. i see in the log
Thu Sep 18 11:16:07 2003 : Debug: rlm_checkval: Item Name:
Calling-Station-Id, Value: 61234444444
Thu Sep 18 11:16:07 2003 : Debug: rlm_checkval: Value Name:
Calling-Station-Id, Value: ^[6|7]123 <------ Where are the round
brackets and a rest of pattern????
Thu Sep 18 11:16:07 2003 : Debug: rlm_checkval: Doing regex
Thu Sep 18 11:16:07 2003 : Debug: modcall[authorize]: module
"checkval" returns ok
It is very strange, but "(",")","{","}" brackets does not working in
pattern.
In the "checkval" sources "REG_EXTENDED|REG_NOSUB" flags are used in
regcom().
Probably this problem is not my private only.
Is there anybody who uses checkval with "=~" operator with some
problems?
>> 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.
..
> "=~ ^[6|7]123[8.|19].....$"
> That regex doesn't match what you said. I suggest:
> ^[6|7]123(8|19)[0-9]+
> Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html