From: Matthew Newton Date: Thu, 10 Jun 2021 12:52:24 +0000 (+0100) Subject: rlm_sql_map columns start from zero X-Git-Tag: release_3_0_23~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb6e20c913f74cc7171783da217849939a292ce;p=thirdparty%2Ffreeradius-server.git rlm_sql_map columns start from zero --- diff --git a/raddb/mods-available/sql_map b/raddb/mods-available/sql_map index 91856aa3042..93b26362ecf 100644 --- a/raddb/mods-available/sql_map +++ b/raddb/mods-available/sql_map @@ -29,19 +29,19 @@ sql_map { # : Is the destination RADIUS attribute # with any valid list and request qualifiers. # : Is any assignment attribute (=, :=, +=, -=). - # : The column number (not name) + # : 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 [*] array entry.