Can unlang do this?

Alan DeKok aland at deployingradius.com
Thu Apr 24 09:17:09 CEST 2008


Chris wrote:
> Should I expect something like this to do the right thing?

  No.  The configuration for modules cannot use unlang.  "unlang" is
used *only* for processing packets.

> Basically, I want to set certain ldap variables based on the
> Huntgroup-Name.  Without defining a bunch of different ldap servers,
> that is.

  The basedn is dynamically expanded.  You can do something like:

  modules {
	ldap {
		basedn = "%{Tmp-String-1}"

	}
  }

  and then use "unlang" (or anything else) to set the value of
TMP-String-1 to whatever DN you want.

  Alan DeKok.



More information about the Freeradius-Users mailing list