| Summary: | [DOCS] Form-Based Authentication allow the user with incorrect password to login | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Takayoshi Tanaka <tatanaka> |
| Component: | Documentation | Assignee: | brice <bfallonf> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Vikram Goyal <vigoyal> |
| Severity: | low | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | low | ||
| Version: | 3.3.0 | CC: | aos-bugs, george.goh, jokerman, mfojtik, mmccomas, sgallagh, tatanaka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-18 06:17:16 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Takayoshi Tanaka
2016-11-04 05:29:44 UTC
What mappingMethod do you use? https://docs.openshift.com/container-platform/3.3/install_config/configuring_authentication.html#mapping-identities-to-users I can also reproduce this problem on my setup.
The mappingMethod I've used is 'claim'.
- name: LDAP Proxy
challenge: true
login: true
mappingMethod: claim
provider:
apiVersion: v1
kind: RequestHeaderIdentityProvider
challengeURL: "https://ose-lb.int.spodon.com/challenging-proxy/oauth/authorize?${query}"
loginURL: "https://ose-lb.int.spodon.com/login-proxy/oauth/authorize?${query}"
clientCA: /etc/origin/proxy/proxyca.crt
headers:
- X-Remote-User
Mapping method is unrelated to the auth proxy setting a "(null)" header value for an unauthenticated user
Looks like the doc is missing the env=REMOTE_USER condition when setting the request header:
RequestHeader set X-Remote-User %{REMOTE_USER}s env=REMOTE_USER
Opened https://github.com/openshift/openshift-docs/pull/3183 to update docs I've tested this on 2 environments, and it correctly returns to the login screen when a wrong user/password combination is provided. The PR has merged [1]. Moving this bug to CLOSED --> CURRENTRELEASE. [1] https://docs.openshift.com/container-platform/3.3/install_config/advanced_ldap_configuration/sssd_for_ldap_failover.html#phase-2-step-2-sssd-configuration |