Want to set Auth-Type to pam if Auth-type ist unset

Alan DeKok aland at deployingradius.com
Mon May 5 19:22:41 CEST 2008


Hans-Peter Fuchs wrote:
> freeradius-2.0.4 under rhel el 5.
> 
> If no module sets Auth-Type I want it to set to: pam.
...
>        if (Control:Auth-type == "") {
...
> radiusd -X show that even if no authetication method is found the
> condition is not empty.
> ++? if ('%{Control:Auth-type}' == "")

  That isn't what you typed above.

 - use the example suggested earlier
 - single quotes mean it does *not* expand the string.
   See "man unlang".  This is how single quotes work in most interpret
   languages.

> Do you have a suggestion?

  Make sure you're using the config files you think you're using.

  Alan DeKok.



More information about the Freeradius-Users mailing list