Referring to module-specific information in post-auth

Matthew Newton mcn4 at leicester.ac.uk
Mon Nov 14 17:05:25 CET 2016


On Fri, Nov 11, 2016 at 10:33:50PM +0000, Stefan Paetow wrote:
> was expecting "modules" to be accessible? There is something I'm missing,
> isn't it?

The debug output :)

> Something really silly?

It works fine here on ~3.0.12:

e.g.

  authorize {
    update reply {
      Tmp-String-0 := ${modules.ldap.server}
    }
  }

with

  modules {
    ldap {
      server = "localhost"
    }
  }

Tmp-String-0 expands to "localhost".

Similarly with instance names,

  update reply {
    Tmp-String-0 := ${modules.ldap[ldap1].server}
  }

with

  modules {
    ldap ldap1 {
      server = "localhost2"
    }
  }

Tmp-String-0 expands to "localhost2".

Similarly works with e.g. Tmp-String-0 :=
"foo-${modules.ldap[ldap1].server}-bar" and expands to
"foo-localhost2-bar".

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at leicester.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list