Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active April 27, 2018 09:22
Show Gist options
  • Save ikurni/86c4bf8532e9427e5b11fb2943a64004 to your computer and use it in GitHub Desktop.
Save ikurni/86c4bf8532e9427e5b11fb2943a64004 to your computer and use it in GitHub Desktop.
Master config with LDAP Provider
oauthConfig:
assetPublicURL: https://ocpmaster.example.com:8443/console/
grantConfig:
method: auto
identityProviders:
#- challenge: true
# login: true
# mappingMethod: claim
# name: allow_all
# provider:
# apiVersion: v1
# kind: AllowAllPasswordIdentityProvider
- name: "my_ldap_provider"
challenge: true
login: true
# add new user automatically to OCP master when AD user login
mappingMethod: add
provider:
apiVersion: v1
kind: LDAPPasswordIdentityProvider
attributes:
id:
- cn
email:
- mail
name:
- cn
preferredUsername:
- uid
bindDN: "CN=user1,OU=myou,DC=example,DC=com"
bindPassword: ""
ca: ""
insecure: true
url: "ldap://hostname.example.com/OU=myou,DC=example,DC=com?cn"
- name: "my_htpasswd_provider"
challenge: true
login: true
mappingMethod: claim
name: htpasswd_auth
provider:
apiVersion: v1
file: /etc/users.htpasswd
kind: HTPasswdPasswordIdentityProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment