rlm_cache

Alan DeKok aland at deployingradius.com
Wed Sep 3 16:59:19 CEST 2014


BALSIANOK, Peter wrote:
> Maybe I didn`t write it correct.
> At this moment i`m using rlm_perl to do everythink. 
> The perl code also contains internal cache to prevent contact LDAP server (each time). So I can process request quicker.

  I've tested LDAP servers at 10K auth/s.  There shouldn't be a need for
caching.

  And FreeRADIUS can talk to LDAP natively.  There's no need to use Perl
for that.

> But perl code has limitation. As I understand, only one thread (locking) can use perl code at the same time.

  Perl is thread-safe.  rlm_perl is thread-safe.

> Therefore I want to use rlm_cache to store reply&control for request, so I don`t need to call perl code if request was correct / incorrect last time.

  I would suggest just using the LDAP module.  It's simpler, and it works.

  Alan DeKok.


More information about the Freeradius-Users mailing list