vscode-openshift-tools
vscode-openshift-tools copied to clipboard
How can I log into a cluster using an LDAP account?
We have an OpenShift cluster that we access using domain accounts via LDAP. If I just enter my credentials when logging in I can't authenticate. What do I need to do to use LDAP authentication (not "basic" one)?
It seems from the documentation that calling oc login then providing the username and password should work. https://docs.openshift.com/container-platform/4.14/authentication/identity_providers/configuring-ldap-identity-provider.html This is what we do under the hood. However, we provide both the username and password as command line arguments. Maybe specifying the password interactively gets oc to do something different, we will need to investigate further