Cron Job for LDAP groups sync code syntax error on OpenShift Container Platform 4.

Solution Verified - Updated -

Issue

The issue is found when using CronJob object to synchronize the LDAP groups following the documentation as described under "Automatically syncing LDAP groups" section.

When the CronJob creates the pod to run its task, then results in an error as shown below:

$ oc get pods
NAME                                         READY   STATUS   RESTARTS   AGE
<ldap-sync-pod>--x-xxxxx   0/1     Error    0          2m4s

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.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