Caching-Realm

Background

A Caching-Realm maintains a Database like the Db-Realm. If required Profile is not in this Database, a other Radiusd is asked.
So a provider with many Points of Present could have different strategies:
centralizised
in the POPs are Radiusd with Caching, which ask a central Radius
decentral
each POP have for each other POP a caching Realm.

Configuration

In the realms-file thos realmtype is called caching. The Parameters are:
name
The Name of the Db-Hash-Table. This must be the first.
niemandneues
This specifies, that only userprofile in the Database are valid. This Parameter is optional. The other Radiusd is only to ask for the password.

Purpose: You don't want to let in the whole realm, but only a few people.

timeout=time in hours.
describes when a cache entry time out. This parameter is optional. It overwrites the define CACHETIMEOUT in config.h
Configuration-examples in realms:
proxytest1 caching(proxytest1,niemand_neues,timeout=1)
proxytest2 caching(proxytest2,timeout=12)

Maintainance-Tools

Since the caching-Realm use the same database-Typ like the db-realm, see Maintainance-tools of the Db-Realm.

Important: before using a caching-Realm, you have to build a Db with baueuserdb_db (It may empty).