vscode-openshift-tools icon indicating copy to clipboard operation
vscode-openshift-tools copied to clipboard

How can I log into a cluster using an LDAP account?

Open savissimo opened this issue 2 years ago • 1 comments

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)?

savissimo avatar Feb 02 '24 08:02 savissimo

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

datho7561 avatar Feb 02 '24 15:02 datho7561