APM - AD domain session variable reset after failed logon?
Hi everybody,
I'm starting using APM now in our company. We have a setup where we need to authenticate external and internal users in 2 separate AD domains on the logon page. So the user needs to select his domain in a drop down box and enters his username and domain password.
Before sending the credentials to the domain controller, we do a simple check on the predefined domain value set up in the select box from the logon page to be able to send the credentials to the correct domain controller.
We use the following expression to check the domain:
expr { [mcget {session.logon.last.domain} ] eq "DomainA"}
Now I have the following problem: When for example I'm trying to logon and I select the wrong domain, authentication fails. This is absolutely OK. I'm redirected to the logon page. Now that I know I selected the wrong domain, I select the other domain on the logon page and I cannot logon, even the password and the correct domain has been selected. In the APM log file, I can see that APM did not updated the session.logon.last.domain variable. It tries to authenticate always using the first domain selected.
So my question:
-
Are some variables beeing reset if logon fails?
-
If not, how do I can reset this particularly variable?
Thanks a lot,
Kind regards,
Gilles