Split domain from loginName on APM form when signing in

Hi, We’ve noticed that users cannot login to an F5 APM-protected page with DOMAIN/loginName format. Unfortunately, we have a lot of users who do this and enter their company domains.

In an access profile login page, how can I strip DOMAIN\ from the username field on the event of pressing enter or the submit button.

Hi Gurdip,

you can either use the Build-In “Split domain from full Username” option on the VPE Login Page item, or use the custom variable assign action below, directly after your Login Page.

Custom Variable:

session.logon.last.username

Custom Expression:

set username [string tolower [lindex [split [mcget {session.logon.last.username}] "@"] 0]] ; 
if { [llength [split $username "\\"]] == 1 } then { 
     username does not contain NT-Domain notation 
} else { 
    set username [lindex [split $username "\\"] 1] ; 
} ; 
return $username ;

Note: Personally I use the variable assign approach, since it additionally formats the username tolower and also strips DOMAIN\upn@domain.de notations.

Cheers, Kai