conditionally call ldap module instance?
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? authorise { preprocess ldap1 if(fail || notfound){ ldap2 } files } Thanks Gary Prosser - IT Manager Trinity College, Bristol (http://www.trinity-bris.ac.uk) To ensure you receive email from Trinity College into your inbox, please add @trinity-bris.ac.uk to your email safe list (also known as whitelist).
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: ldap1 if (fail || notfound { That's it. Everything else you had was OK.
ldap2 } files }
participants (2)
-
Alan DeKok -
Gary Prosser