Forum Discussion
Peter_Baumann_5
Nimbostratus
Jun 22, 2015APM: SSO not able to setup for phpipam
Hi all,
Since a longer time I try to setup SSO for phpipam web-app, demo here: http://phpipam.net/phpipam-demo/
I use this web-app to try the more complex SSO setups since phpipam using a modern...
Drew_24528
Nimbostratus
Sep 01, 2016I just ran into this issue.
This can be solved with an iRule as the phpipam application doesn't redirect on a successful login.
when HTTP_RESPONSE {
Trigger collection for up to 1MB of data
if {[HTTP::header exists "Content-Length"] && [HTTP::header "Content-Length"] <= 1048576}{
set content_length [HTTP::header "Content-Length"]
} else {
set content_length 1048576
}
Check if $content_length is not set to 0
if { $content_length > 0} {
HTTP::collect $content_length
}
}
when HTTP_RESPONSE_DATA {
if { [HTTP::payload] contains "Login successful"}{
log local0. "Login successful"
HTTP::redirect http://ipam.domain.com/phpipam/
}
}
Once this rule is applied to the VIP with the APM policy you can use a regular forms SSO profile with the following values:
apm sso form-based sso_apm_ipam.domain.com_forms {
form-action /phpipam/app/login/login_check.php
form-password ipampassword
form-username ipamusername
}
passthru true
start-uri /phpipam/\?page=login
}
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