]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
correct samples
authorAlan T. DeKok <aland@freeradius.org>
Mon, 29 Mar 2021 23:08:07 +0000 (19:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 29 Mar 2021 23:08:07 +0000 (19:08 -0400)
raddb/mods-config/sql/main/mongo/queries.conf

index 3b70f33b73b8e49f49842f76c1ccc806456a42a2..8485a6b74e45aebf1a6e760771ba57d87d0c2c95 100644 (file)
@@ -47,13 +47,13 @@ sql_user_name = "%{User-Name}"
 #######################################################################
 
 #
-# Aggregate query that return like for SQL standard N rows with columns <attribute>,<op>,<value>
+# Aggregate query that return like for SQL standard N rows with columns <id>,<attribute>,<value>,<op>
 #
 # Example of Result:
 #
-# { "attribute" : "User-Name", "Value" : "pippo", "op" : ":=" }
-# { "attribute" : "ClearText-Password", "value" : "pwd1", "op" : ":=" }
-# { "attribute" : "Cache-TTL", "value" : 1000, "op" : ":=" }
+# { "id" : 0, "attribute" : "User-Name", "Value" : "pippo", "op" : "==" }
+# { "id" : 0, "attribute" : "ClearText-Password", "value" : "pwd1", "op" : ":=" }
+# { "id" : 0, "attribute" : "Cache-TTL", "value" : 1000, "op" : ":=" }
 #
 authorize_check_query = "db.${authcheck_table}.aggregate([ \
        { \