Forum Discussion
Drew_24528
Sep 01, 2016Nimbostratus
I 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
}