cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation ignores "time" variable

Frostie_
Contributor

Simulation ignores "time" variable

Hello

While playing around the user session simulator i´ve found out, that the SA always uses the current date for the simulation, regardless of what is set in the "time" variable.

For example. I´ve setup a test realm where I map my testuser to a test role with the very simple custom expression
time.year = 2011 and time.month = 3 and time.day = 10.
Dynamic policy evaluation is enabled.

Then i´ve setup a simulator query for the test realm with the variable time = 2010-03-10.
In my understanding this means, the SA simulates what would happen if the testuser logs in and the interal clock
of the SA is March 10th, 2011.

After starting this simulation, the logs says:

Variable time = Thu Mar 10 14:38:25 2011
No match on rule 'time.year = 2011 and time.month = 3 and time.day = 10'


So the simulation took the correct date, but, strangly, the expression does not match.

I then changed the custom expression to...
time.year = 2011 and time.month = 3 and time.day = 1 <---- the current date
...and started the simulation again.

Variable time = Thu Mar 10 15:04:22 2011
Mapped to roles W-Test by rule 'time.year = 2011 and time.month = 3 and time.day = 1'



Then I changed the time variable to
time = 2005-03-10                  <---- pay attention to the year.
and started the simulation again.

Variable time = Thu Mar 10 15:08:44 2005
Mapped to roles W-Test by rule 'time.year = 2011 and time.month = 3 and time.day = 1


Um, well...2005 isn´t equal to 2011, isn´t it?


Am I missing something or is this a bug?

Our SA is a 4500 with 6.5R8?