cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.
Sam_Novak
Nimbostratus
Nimbostratus

Problem this snippet solves:

In our recent implementation of APM, we discovered that if a user starts their username with a capital letter, it will fail AD authentication. This was typically happening with phones, as those keyboards have a tendency to auto capitalize the first letter of a line. Here is the session variable macro I used to transparently solve this problem.

How to use this snippet:

Create a 'variable assignment' macro before your AD authentication step in the policy editor for APM, with the corresponding 'Custom Variables' and 'Custom Expressions'.

Code :

Assignment #1
Variable: session.logon.last.logonname
Expression: expr { "[string trim [mcget {session.logon.last.logonname}]]" }

Assignment #2
Variable: session.logon.last.logonname
Expression: expr { "[string tolower [mcget {session.logon.last.logonname}]]" }

Assignment #3
Variable: session.logon.last.username
Expression: expr { "[string trim [mcget {session.logon.last.username}]]" }

Assignment #4
Variable: session.logon.last.username
Expression: expr { "[string tolower [mcget {session.logon.last.username}]]" }

Tested this on version:

13.0
Version history
Last update:
‎18-Jan-2019 05:21
Updated by:
Contributors