Advertisement
gusto2

F5 APM dynamic IdP assignment

Aug 18th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1.  
  2. tmsh list ltm data-group internal hostname-idp
  3. ltm data-group internal hostname-idp {
  4. records {
  5. f5idp2.host.eu {
  6. data /Common/f5idp2
  7. }
  8. f5idp.host.eu {
  9. data /Common/f5idp
  10. }
  11. }
  12. type string
  13. }
  14.  
  15.  
  16.  
  17. when ACCESS_ACL_ALLOWED {
  18. set host [ACCESS::session data get "session.server.network.name"]
  19. log local0. "IdP host : $host"
  20.  
  21. set sso_conf [class lookup $host "hostname-idp"]
  22. log local0. "IdP SSO config: $sso_conf"
  23. if {$sso_conf != ""} {
  24. WEBSSO::enable
  25. WEBSSO::select $sso_conf
  26. } else {
  27. log local0. "Unable to find matching IdP for $host on the hostname-ipd datagroup"
  28. ACCESS::session remove
  29. }
  30. unset host
  31. unset sso_conf
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement