Forum Discussion
AP_129594
Nimbostratus
Aug 14, 2014APM - Cross domain support
I have an APM portal that was design for 2 domain users to login with different sharepoint resources. Domain B trusted domain A and I can easily use split domain at login and cross domain support. ...
kj07208_118528
Cirrus
Aug 20, 2014What about using the trail and fail method when the user enters their user name set the domain to domainB\userX and do a query if you get no results back failback to querying domainA. The only problem is the extra queries and time. What about dropping a cookie on the users machine?
Sample code for reading cookies and injecting into a variable for the APM
-------------------------------------- iRULE --------------------------------------
when ACCESS_SESSION_STARTED {
log local0. "**** Access Session Started ............"
log local0. "Checking for cookies .................."
ACCESS::session data set session.custom.domain 0
set domain [HTTP::cookie UserDomain]
log local0. ">>>> Cookie value ...($domain)"
if {[HTTP::cookie exists "UserDomain"]}{
log local0. ">>> Cookie set ... ($domain)"
ACCESS::session data set session.custom.domain $domain
}
}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