Skip to content

Instantly share code, notes, and snippets.

@Lasherbr
Created November 5, 2018 17:05
Show Gist options
  • Save Lasherbr/afa53857785d3496e97868c2fdfa20b4 to your computer and use it in GitHub Desktop.
Save Lasherbr/afa53857785d3496e97868c2fdfa20b4 to your computer and use it in GitHub Desktop.
- name: AD
challenge: true
login: true
mappingMethod: claim
provider:
apiVersion: v1
kind: LDAPPasswordIdentityProvider
attributes:
id:
- dn
email:
- mail
name:
- cn
preferredUsername:
- sAMAccountName
bindDN: 'dominio\usuario'
bindPassword: "password"
ca: ""
insecure: true
url: "ldap://ad.example.com:389/DC=example,DC=com?sAMAccountName?sub?(&(objectClass=person)(memberOf=CN=G-ACESSO OPENSHIFT Administrators,OU=Grupos,OU=Administrativos - Contas e Grupos de serviços,DC=example,DC=com))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment