Skip to content

Instantly share code, notes, and snippets.

@ralvares
Last active June 15, 2021 07:15
Show Gist options
  • Select an option

  • Save ralvares/9f05810df9c4070225969767a4a58048 to your computer and use it in GitHub Desktop.

Select an option

Save ralvares/9f05810df9c4070225969767a4a58048 to your computer and use it in GitHub Desktop.
ldap_IDM
apiVersion: config.openshift.io/v1
kind: OAuth
metadata:
name: cluster
spec:
identityProviders:
- name: ldapidp
mappingMethod: claim
type: LDAP
ldap:
attributes:
id:
- dn
email:
- mail
name:
- cn
preferredUsername:
- uid
bindDN: srvcSatelliteLDAP@ADSERVER
bindPassword:
name: ldap-bind-password
insecure: true
url: "ldap://ADSERVER.local/DC=ADSERVER,DC=local?sAMAccountName?sub?(|(memberOf=CN=OCPAdmins,OU=Groups,DC=ADSERVER,DC=local)(memberOf=CN=Developers,OU=Groups,DC=ADSERVER,DC=local))"
tokenConfig:
accessTokenMaxAgeSeconds: 86400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment