Repost: Properly using the := and = operators?

Kevin Bonner keb at pa.net
Wed Dec 27 20:51:01 CET 2006


Mike,

See http://wiki.freeradius.org/Operators for operator behavior.

On Tuesday 26 December 2006 17:52, Mike wrote:
> mysql> select * from radreply ;
> |  2 | joe.user | Framed-IP-Address | =  | 1.2.3.4 |

This looks correct.  The = operator says to assign 1.2.3.4 to the 
Framed-IP-Address attribute, if that attribute doesn't already exist.

> mysql> select * from radgroupreply ;
> |  5 | suspended | Framed-IP-Address | =  | 10.10.0.2+      |

The = operator here is incorrect, as you want to always override the 
Framed-IP-Address.  Using := will replace any/all Framed-IP-Address 
attributes in the reply with the one listed above.

Kevin Bonner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061227/e774ef7b/attachment.pgp>


More information about the Freeradius-Users mailing list