]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move sample Ruby to raddb so it gets packaged
authorNick Porter <nick@portercomputing.co.uk>
Tue, 10 Jun 2025 07:43:16 +0000 (08:43 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 10 Jun 2025 07:46:00 +0000 (08:46 +0100)
raddb/mods-config/mruby/example.rb [moved from src/modules/rlm_mruby/example.rb with 92% similarity]

similarity index 92%
rename from src/modules/rlm_mruby/example.rb
rename to raddb/mods-config/mruby/example.rb
index cea815c0b97e84bf874f12405fd52f242ac9f7fc..06d92b9b5c708c4f79d46d950287d68aade7277a 100644 (file)
@@ -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")