Forum Discussion
Split domain from full username for Basic Auth (401)
- Oct 18, 2017
I found a way to make this with TCL in another post here on the DevCetral, for doing that you need setup an Agent Box "Set Variable" with this command:
session.logon.last.username =
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 ;
I found a way to make this with TCL in another post here on the DevCetral, for doing that you need setup an Agent Box "Set Variable" with this command:
session.logon.last.username =
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 ;
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com