Login to OpenShift Container Platfrom from CLI fails with error "error: authenticationrequired".

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content