Last active
April 27, 2018 09:22
-
-
Save ikurni/86c4bf8532e9427e5b11fb2943a64004 to your computer and use it in GitHub Desktop.
Master config with LDAP Provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
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