I would like to limit the username field to no more than 7 characters to prevent users from accidently putting their username and password in the username field.
Is this possible?
If so, how?
If not, is there an alternative that will allow non-plain-text usernames? (I believe the username needs to be sent in plain text to our Domain Controllers??)
Hi, I think that’s weird you need, but, in a simple way you could add a script in logon.inc resource on advanced mode design to check this in client side:
With APM you can basically do anything because you can stick TCL anywhere you want. Here’s how to do that:
Go to VPE in your access policy
Add (or edit) a logon page Policy Item.
Add a branch rule
Add whatever expression you want (it doesn’t matter, we’re going to edit it)
Click the Advanced tab
Use this expression: expr { [string length [mcget {session.logon.last.username}]] > 7 }
The system evaluates that from the innermost square brackets out, like algebra. “string length” is TCL to grab the length of a string. “mcget” grabs a session variable from APD’s cache (or sessiondb, depending). “expr” evaluates the expression mathematically.