[PATCH] return notfound from rlm_sql

Alan DeKok aland at deployingradius.com
Wed May 4 09:05:37 CEST 2011


Dmitry Borodaenko wrote:
> The scenario where this is useful is a staged migration from a legacy
> Radius platform to a new FreeRadius setup. During migration phase, new
> users are created in the new database, existing users are gradually
> moved from the old database to the new one. Users existing in the new
> database are handled locally, auth and acct packets for users that
> weren't migrated yet are proxied to the legacy platform.

  That's a good use-case.  It would probably be better, though, to have
the module return NOOP if it doesn't do anything.  That's the intent of
NOOP after all.

  Doing it that way means that the change is limited to the SQL module,
and no patching of modcall.c is necessary.

  Alan DeKok.



More information about the Freeradius-Devel mailing list