Mongo and operators

Jorge Pereira jpereira at freeradius.org
Wed Mar 24 01:17:53 CET 2021


Which version are you running? We need more output https://wiki.freeradius.org/guide/radiusd-X <https://wiki.freeradius.org/guide/radiusd-X> 



> On 23 Mar 2021, at 20:56, Giedrius Baronas <g.baronas at gmail.com> wrote:
> 
> Hello all,
> 
> I try mongo db query in default instalation but I get error about key 'op' value ':=' witch is incorrect.
> How to solve the use of special characters in a mongo query?
> 
> main/mongo/queries.conf
> 
>   <85 line>      { \
>                 '$project': { \
>                         '_id': 0, \
>                         'attribute': '$attributes.k', \
>                         'value': '$attributes.v', \
>                         'op': ':=' \
>                 } \
> <92 line>        } \
> 
> radius -X output:
> #(0) sql: ERROR: The op field for attribute ':= = (null)' is NULL, or non-existent.
> #(0) sql: ERROR: You MUST FIX THIS if you want the configuration to behave as you expect
> #(0) sql: ERROR: Value field is empty or NULL, skipping the entire row
> 
> Giedrius Baronas
> www.baronai.lt
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list