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

2620-ppolicy-binding
Maxime Besson 4 years ago
parent 33dac7bc91
commit a94fb616bd
  1. 6
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/CAS.pm

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

Loading…
Cancel
Save