unlang question

Alan DeKok aland at deployingradius.com
Thu Jul 5 14:35:35 CEST 2007

Arran Cudbard-Bell wrote:
> So return codes work properly again now ?  Or do they semi work from 
> before ?

  I'm not sure what you mean by that.

  	module {
		notfound = 1

  works.  It's always worked.

  What also works now is:

	  if (notfound) {

  What *doesn't* work is:

  	if (...) {
		ok = 1

  It's never worked.

  The original question was about implementing logic of "if auth, do X,
if reject, do Y".  That's what the "post-auth" section is for.  Doing it
in the "authenticate" section is wrong.

  Alan DeKok.

More information about the Freeradius-Devel mailing list