From 9ae1ffef4c2d720a95baa057093832385e7f9125 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Wed, 10 Feb 2021 18:41:25 +0100 Subject: [PATCH] temporary fix for the ldap scenario --- realm-templates/ldap.template | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/realm-templates/ldap.template b/realm-templates/ldap.template index 6f56083..0d145aa 100644 --- a/realm-templates/ldap.template +++ b/realm-templates/ldap.template @@ -33,7 +33,28 @@ "quickLoginCheckMilliSeconds": 1000, "maxDeltaTimeSeconds": 43200, "failureFactor": 30, - "users": [], + "users": [ +{{- range $count, $user := .Users }} +{{- if gt $count 0 }},{{ end }} + { + "username": "user_{{ $user.ID }}", + "firstName": "User", + "lastName": "{{ $user.ID }}", + "email": "user_{{ $user.ID }}@nowhere.test", + "emailVerified": true, + "enabled": true, + "credentials": [ + { + "type": "password", + "value": "user_{{ $user.ID }}" + } + ], + "requiredActions": [], + "realmRoles": [], + "applicationRoles": {} + } +{{- end }} + ], "roles": { "realm": [], "client": {}