Freeradius Module Extension Magic Number mismatch
    Dincer Beken 
    dbeken at blackned.de
       
    Mon Sep  9 15:41:02 UTC 2024
    
    
  
Hello,
Freeradius 3.2.1 is installed from debian packages (standard debian bookworm distribution). I have implemented a new module and added it as an .so. I built the module alongside Freeradius 3.2.1 (from github).
When enabling the module, I get the following error:
Mon Sep  9 15:29:38 2024 : Error: /etc/freeradius/3.0/mods-enabled/tba[1]: Failed loading module rlm_(null) from file /usr/lib/freeradius/rlm_tba.so
Mon Sep  9 15:29:38 2024 : Error: /etc/freeradius/3.0/mods-enabled/tba[1]: Application and rlm_(null) magic number (prefix) mismatch.  application: 0 module: f0
Even if I write the simplest module, I get this issue.
The has the following binder. Can you tell me, where the issue is originating from, and how I can get the MAGIC number? I searched and tried out a lot, but at the end, had to implement the functionality as a python script. Getting the radius module running would help me a lot.
extern module_t rlm_tba;
module_t rlm_tba = {
      .magic            = RADIUSD_MAGIC_NUMBER,
      .methods = {
            [MOD_POST_AUTH] = tba_post_auth
      }
};
Regards,
Dincer
    
    
More information about the Freeradius-Users
mailing list