]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use the %-SQL-Group
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jun 2015 18:03:04 +0000 (14:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Jun 2015 18:03:04 +0000 (14:03 -0400)
src/modules/rlm_sql/rlm_sql.c

index 225719a4e2cd5f2294837750343637e3a91000ff..8beedd79470f1217d74adb9c49b3033e2e593ba4 100644 (file)
@@ -669,9 +669,9 @@ static rlm_rcode_t rlm_sql_process_groups(rlm_sql_t *inst, REQUEST *request, rlm
         *      Add the Sql-Group attribute to the request list so we know
         *      which group we're retrieving attributes for
         */
-       sql_group = pairmake_packet("Sql-Group", NULL, T_OP_EQ);
+       sql_group = pairmake_packet(inst->group_da->name, NULL, T_OP_EQ);
        if (!sql_group) {
-               REDEBUG("Error creating Sql-Group attribute");
+               REDEBUG("Error creating %s attribute", inst->group_da->name);
                rcode = RLM_MODULE_FAIL;
                goto finish;
        }