rlm_passwd and Class -attribute

Alan DeKok aland at deployingradius.com
Tue Feb 20 16:29:53 CET 2007


Lasse Karstensen wrote:

> class=foo
> if user exists in bar-passwd.crypt: class = bar
> print "Class = $class"

  See doc/configurable_failover.  You can conditionally control which
modules get executed, based on whether or not a user was found by
another module.

authorize {
	suffix
	eap
	mschap
	files
	group {
		foo_passwd {
			notfound = return
		}
		foo_files
	}
	...

}

  Where "foo_files" is a variant of the "files" module, which "users"
file entries specifically to add Class for "foo".

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Users mailing list