oc login fails with 500 internal server error for LDAP users

Solution Verified - Updated -

Issue

  • How to modify the bindPassword for the LDAP configuration.
  • The oc login command fails with 500 internal server error while using LDAP as identity provider:

    $ oc login -u ocp-user
    Authentication required for https://api.example.com:6443 (openshift)
    Username: ocp-user
    Password:
    Error from server (InternalError): Internal error occurred: unexpected response: 500
    
  • The oauth-openshift log shown AuthenticationError with the message:

    LDAP Result Code 49 "Invalid Credentials"
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • LDAP

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