Forum Discussion
Split domain from full username for Basic Auth (401)
Hello,
Its possible to enable the option "Split domain from full username" for basic Authentication? I checked that its possible to configured this with the Forms Authentication using the Agent Box "Logon Page" but it can be done with the 401 box? Or there is an solution to make that with an iRule.
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