users file and "!*" comparisons
Daniel Larsson
Daniel.Larsson at servicefactory.com
Tue Aug 7 18:48:02 CEST 2007
I've encountered an unintuitive behaviour in the users file processing .
I wanted to do something similar to:
DEFAULT Some-Attr !* "", Other-Attr !* ""
...
I.e. if neither "Some-Attr" nor "Other-Attr" is present, it should
match.
However, this doesn't work, as paircmp in valuepair.c immediately
returns the result as soon as an operator "!*" is found in the check
list. No other check items in the user entry is checked. This seems to
apply to both 1.1 and 2.0 branches.
Before I try to patch this, is this intended for some reason?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20070807/0bdc1408/attachment.pgp>
More information about the Freeradius-Devel
mailing list