Login to OpenShift Container Platfrom from CLI fails with error "error: authenticationrequired".
Issue
- After configuring NTLM authentication proxy,
oc login
fails. Able to login OpenShift webui through same proxy.
$ export https_proxy=http://proxy-user:password@proxyIP:port
$ export http_proxy=http://proxy-user:password@proxyIP:port
$ export HTTP_PROXY=http://proxy-user:password@proxyIP:port
$ export HTTPS_PROXY=http://proxy-user:password@proxyIP:port
$ oc login https://master.example.com:8443
error: authenticationrequired
$ oc login https://master.example.com:8443 --username=user --password=password
error: authenticationrequired
Environment
- OpenShift Container Platform 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.