I am trying to setup an ldap connection using the KeycloakRealm custom resource. How do I get bindCredential from a kubernetes secret? You can see an example of this below.
enabled: true
displayName: 'Main Realm'
{{- if .Values.config.keycloak.ldap.enabled }}
userFederationProviders:
- displayName: ldap
providerName: ldap
config:
allowKerberosAuthentication: 'false'
authType: simple
batchSizeForSync: '1000'
bindCredential: {{ .Values.config.keycloak.ldap.password | quote }}
bindDn: cn={{ .Values.config.keycloak.ldap.username }},{{ template "keycloak.ldap-dc" . }}
cachePolicy: DEFAULT
changedSyncPeriod: '-1'
connectionPooling: 'true'
connectionUrl: ldap{{ .Values.config.keycloak.ldap.tls.enabled | ternary "s" "" }}://{{ .Values.config.keycloak.ldap.hostname }}
debug: 'false'
editMode: WRITABLE
enabled: 'true'
fullSyncPeriod: '-1'
importEnabled: 'false'