From ff8a8128237bee2c8c01948fc69ca9b66fae6ea0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 20 Dec 2021 19:31:57 +0100 Subject: [PATCH] web/admin: don't auto-select certificate for LDAP source verification Signed-off-by: Jens Langhammer --- web/src/pages/sources/ldap/LDAPSourceForm.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/src/pages/sources/ldap/LDAPSourceForm.ts b/web/src/pages/sources/ldap/LDAPSourceForm.ts index 59729d5ab..771313257 100644 --- a/web/src/pages/sources/ldap/LDAPSourceForm.ts +++ b/web/src/pages/sources/ldap/LDAPSourceForm.ts @@ -160,11 +160,8 @@ export class LDAPSourceForm extends ModelForm { }) .then((keys) => { return keys.results.map((key) => { - let selected = + const selected = this.instance?.peerCertificate === key.pk; - if (keys.results.length === 1) { - selected = true; - } return html`