On Mar 30, 2021, at 6:11 PM, Giedrius Baronas <g.baronas@gmail.com> wrote:
Hi,
I tried with your wrote output result but with it is failed. I ordering op to above attribute and work with errors. I moved the op above the attribute and it helped. The error left is that op is NULL, which I don't know how to solve.
-------------------=========== incorrect =============------------------------- [ { id: '0', attribute: 'User-Name', value: 'test', op: '==' }, { id: '0', attribute: 'User-Password', value: '12345', op: ':=' } ]
getting result from row 0 = 0x55e3c4760800 (0) sql: ERROR: The op field for attribute 'test = :=' is NULL, or non-existent. (0) sql: ERROR: You MUST FIX THIS if you want the configuration to behave as you expect
OK... I've rooted through the code a little more. It's been a while since I looked at the Mongo stuff :( I forgot about the "username" field. So you should use: { "id" : 0, "username": "bob", "attribute" : "User-Name", "Value" : "pippo", "op" : "==" } I'll see if I can update the examples, and the code to give better error messages. Alan DeKok.