Allow admin to disallow host-based match (#2506)

This commit is contained in:
Maxime Besson 2021-04-09 17:51:54 +02:00
parent 33dac7bc91
commit a94fb616bd

View File

@ -527,9 +527,11 @@ sub getCasApp {
} }
} }
# Try to match host # Try to match host, only if strict matching is disabled
unless ( $self->conf->{casStrictMatching} ) {
$hostnameConfKey = $app if ( $hostname eq $candidateHost ); $hostnameConfKey = $app if ( $hostname eq $candidateHost );
} }
}
# Application found by prefix has priority # Application found by prefix has priority
return $prefixConfKey if $prefixConfKey; return $prefixConfKey if $prefixConfKey;