Alain_B_150222
May 23, 2017Nimbostratus
Branch evaluation fails with Rule evaluation error: invalid command name "session.logon.last.username"
Hopefully somebody is able to enlighten me, I have the code below in a branch rule expression of an AD Query element. I get an 'Rule evaluation failed with error: invalid command name "session.logon.last.username"' error. The purpose is to translate an email entered to the matching AD logon username from AD. The AD query succeeds (mail=%{session.logon.last.username}).
It looks like the variable assign element is not able to change the session.logon.last.username variable.
if { [mcget {session.ad.last.queryresult}] == 1 } {
session.logon.last.username = mcget {session.ad.last.attr.sAMAccountName};
return 1;
};
return 0;
Thanks for sharing your thoughts / ideas.