rlm_realm(5)

πŸ“¦
version 3.2.10 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

🌸 NAME 🌸

rlm_realm(5) is the page for rlm_realm, aka the FreeRADIUS Module that handles realms. Bestie, it's giving "split the username, find the realm, keep it cute" energy ✨


πŸ’– DESCRIPTION πŸ’–

The rlm_realm module parses the User-Name attribute into a User section and a Realm section. This is used primarily in a proxy situation, but Realms can also be used locally to provide different service profiles based on the Realm being used. No cap, that's the whole vibe 🫢

The main configuration items to be aware of are:

  • format β€” This can be either 'prefix' or 'suffix'. It specifies whether the Realm is before or after the User portion in the User-Name string.
  • delimiter β€” A single character in quotes, which is used as the delimiting character that separates the Realm and User sections of the string.
  • ignore_default β€” This is set to either 'yes' or 'no'. If set to 'yes', this will prevent the module instance from matching a realm against the DEFAULT entry. This may be useful if you have multiple realm module instances. The default is 'no'.
  • ignore_null β€” This is set to either 'yes' or 'no'. If set to 'yes', this will prevent the module instance from matching a realm against the NULL entry. This may be useful if you have multiple realm module instances. The default is 'no'.

This module parses the realm from the User-Name attribute according to the instance configuration, and then performs a lookup to find a matching realm in the /etc/raddb/proxy.conf file. Depending on the configuration of the Realm as matched in the file, the username may be rewritten in a 'stripped' format, or with the Realm portion removed. In either case, a Realm attribute is created and added to the packet on a match, which can be used by other modules. Periodt πŸ’…


πŸŽ€ CONFIGURATION πŸŽ€

Here's the config moment, bestie β€” keep it exactly like this:

modules {
  ... stuff here ...
  # useranme@realm syntax
  realm suffix {
    format = suffix
    delimiter = "@"
  }
   # realm/username syntax
   realm prefix {
    format = prefix
    delimiter = "/"
  }
  ... stuff here ...
}

✨ SECTIONS ✨

This module shows up in these sections: authorization, pre-accounting. Slay 🌈


πŸ¦‹ FILES πŸ¦‹

  • /etc/raddb/radiusd.conf
  • /etc/raddb/proxy.conf

🌈 SEE ALSO 🌈

Go read these too, iykyk:


πŸ‘‘ AUTHORS πŸ‘‘

Shoutout to Chris Parker, cparker@segv.org. Iconic πŸŽ€


πŸ’– That's the whole page, bestie! Cute little sign-off: this came from the FreeRADIUS Module source/version, dated 14 March 2004, and the page is rlm_realm(5). Slay and goodbye! βœ¨πŸ’…

πŸ“¦ where this page comes from