conditionally call ldap module instance?

Alan DeKok aland at
Wed Sep 2 11:00:28 CEST 2009

Gary Prosser wrote:
> Hi
> I have 3 ldap instances (one for each of staff, student, faculty users
> on different hosts). In authorise section I want FR to call eg ldap2
> only if ldap1 returns fail or notfound.
> How can I refer to an instance of the ldap module within a conditional
> statement?

$ man unlang

> authorise {
> 	preprocess
> 	ldap1 if(fail || notfound){

  Almost.  Every *different* thing needs to be on a different line:

	if (fail || notfound {

  That's it.  Everything else you had was OK.

> 		ldap2
> 	}
> 	files
> }  

More information about the Freeradius-Users mailing list