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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.