]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_sql_map columns start from zero
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 10 Jun 2021 12:52:24 +0000 (13:52 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 10 Jun 2021 12:59:40 +0000 (13:59 +0100)
raddb/mods-available/sql_map

index 91856aa304212541de49edeed83b48b54a771db4..93b26362ecfa56c040d26d7d4eb3950c80ebb9df 100644 (file)
@@ -29,19 +29,19 @@ sql_map {
        #       <radius attr>:  Is the destination RADIUS attribute
        #                       with any valid list and request qualifiers.
        #       <op>:           Is any assignment attribute (=, :=, +=, -=).
-       #       <column num>:   The column number (not name)
+       #       <column num>:   The column number (not name), starting from 0
        #
        #  Request and list qualifiers may also be placed after the 'update'
        #  section name to set defaults destination requests/lists
        #  for unqualified RADIUS attributes.
        #
        update {
-               control:Password-With-Header    += 1
-#              control:NT-Password             := 2
-#              reply:Reply-Message             := 3
-#              reply:Tunnel-Type               := 4
-#              reply:Tunnel-Medium-Type        := 5
-#              reply:Tunnel-Private-Group-ID   := 6
+               control:Password-With-Header    += 0
+#              control:NT-Password             := 1
+#              reply:Reply-Message             := 2
+#              reply:Tunnel-Type               := 3
+#              reply:Tunnel-Medium-Type        := 4
+#              reply:Tunnel-Private-Group-ID   := 5
        }
 
        # If the 'query' results in multiple rows, it creates the <radius attr>[*] array entry.