Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LDAP Group Sync Templates for OCP 4.1 #42

Open
darthlukan opened this issue Jul 16, 2019 · 1 comment
Open

Update LDAP Group Sync Templates for OCP 4.1 #42

darthlukan opened this issue Jul 16, 2019 · 1 comment

Comments

@darthlukan
Copy link

High level steps used on OCP 4.1 to set up LDAP group sync. Adding the steps here as requested via internal chat.

  1. Create Secret named ldap-bind-secret in openshift-config namespace with data.bindPassword containing the base64 encoded bind password.
  2. Create ConfigMap named ldap-ca-config-map in openshift-config namespace with data specced to ca.crt containing the CA Cert.
  3. Create Namespace named infra-cronjobs with label name: infra-cronjobs
  4. Create ConfigMap in the infra-cronjobs namespace containing data with ca.crt defined as well as ldap-group-sync.yaml containing the required data defined in the OCP 4.1 Auth Providers: AD/LDAP docs.
  5. Create CronJob named ldap-group-sync in namespace infra-cronfjobs containing a spec consuming the items created prior.
  6. Create ClusterRole named ldap-group-syncer with rules allowing get, list, create, update, and delete on group resources.
  7. Create ClusterRoleBinding named system:ldap-group-syncers with roleRef set to ldap-group-syncer for ldap-group-syncer service account
  8. Create ServiceAccount named ldap-group-syncer in namespace infra-cronjobs
  9. Create Job named initial-ldap-group-sync in namespace infra-cronjobs which consumes the body of the CronJob created in step 5 in order to kick things off.
@dgabrysch
Copy link

How do you map the synced user names to the base64 encoded user names when users are logging in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants