From: Nick Porter Date: Tue, 10 Jun 2025 07:43:16 +0000 (+0100) Subject: Move sample Ruby to raddb so it gets packaged X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a72dc920896a623c18812af17adca5d4fa3f62e;p=thirdparty%2Ffreeradius-server.git Move sample Ruby to raddb so it gets packaged --- diff --git a/src/modules/rlm_mruby/example.rb b/raddb/mods-config/mruby/example.rb similarity index 92% rename from src/modules/rlm_mruby/example.rb rename to raddb/mods-config/mruby/example.rb index cea815c0b97..06d92b9b5c7 100644 --- a/src/modules/rlm_mruby/example.rb +++ b/raddb/mods-config/mruby/example.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true -module Radiusd +module FreeRADIUS def self.instantiate log(L_DBG, "Running ruby instantiate") return RLM_MODULE_OK @@ -16,7 +16,7 @@ module Radiusd log(L_WARN, "Authorize: #{p.request.user_name.get.inspect}") p.reply.framed_mtu.set(1500) p.control.password.cleartext.set('hello') - return [RLM_MODULE_UPDATED, reply, control] + return RLM_MODULE_UPDATED end def self.send_access_accept(p) log(L_DBG, "Running ruby send_access_accept")