Variable for Secret in Request?

Alan DeKok aland at deployingradius.com
Tue Feb 3 19:46:41 CET 2009


Eric Geier wrote:
> Is there a Variable for the shared secret used in the request packets?

  %{client:secret}

  *Anything* in the client section can be referenced this way:

clients.conf:

  client foo {
	ipaddr = 1.2.3.4
	secret = testing123
	the_beatles = cool
  }


authorize, etc.:

	if ("%{client:the_beatles}" == "cool") {
		...
	}

  Alan DeKok.



More information about the Freeradius-Users mailing list