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...
Letendart
Nimbostratus
Dec 10, 2015Salut Stanislas, OK I finally found MY problem ... It was a bit stupid : to get a value Inside the uri I had changed the uri itself ! So and then when it goes to the adfs server, request has failed.
I corrected my error, remains me to be sure I'm using the correct variables : I'm using GLOBAL one,
that's good practice ?When HTTP_REQUEST {
set namevals [split [HTTP::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" }
{ set static::tmp_username [string map -nocase {"%40domaine-test.com" ""} [URI::query [HTTP::uri] [lindex $params 0]]]
}
}
}
when ACCESS_POLICY_AGENT_EVENT {
switch [ACCESS::policy agent_id] {
"O365_USERNAME" {
ACCESS::session data set session.custom.username $static::tmp_username
}
}
}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