Forum Discussion
Letendart
Nimbostratus
Dec 09, 2015VPE logon page : how to set correctly USERNAME and DOMAIN prior to call the AD ...
Hello,
I do not find the variables to set in in entry of the VPE Active Directory auth server ...
I've tune a logon page with USERNAME set as toto@domain.com
Then, when AD auth server it c...
Stanislas_Piro2
Cumulonimbus
Dec 10, 2015Hi,
the use of static variable is wrong as static variables are shared between all virtual servers and connections.
try this irule doing the same:
when ACCESS_SESSION_STARTED {
set uri [ACCESS::session data get session.server.landinguri]
set query [URI::query $uri]
set namevals [split $query "&"]
for {set i 0} {$i < [llength $namevals]} {incr i} {
set params [split [lindex $namevals $i] "="]
set pnum [expr $i+1]
if { [lindex $params 0] contains "username" }
{ ACCESS::session data set session.logon.last.samluser [string map -nocase {"%40domaine-test.com" ""} [URI::query $uri [lindex $params 0]]]
}
}
}
I checked it successfully:
sessiondump -allkeys
e5b4ff31.session.logon.last.samluser 4 titi
e5b4ff31.session.server.landinguri 38 /?terldfkndlfusernamefgjlhgdflkjg=titi
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects