Creating the LDAP secret
Create a secret that contains the LDAP bind password in the openshift-config namespace so the identity provider can authenticate to the directory.
Procedure
-
Create a
Secretobject that contains thebindPasswordfield by running the following command:$ oc create secret generic ldap-secret --from-literal=bindPassword=<secret> -n openshift-configwhere:
<secret>-
Specifies the LDAP bind password value for the
--from-literalargument. The key name must bebindPassword.
-
Alternatively, apply the following YAML to create the secret:
apiVersion: v1 kind: Secret metadata: name: ldap-secret namespace: openshift-config type: Opaque data: bindPassword: <base64_encoded_bind_password>