From 6f5b9fd796c8e0716057aa7307f37326f5a5cfd5 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Fri, 21 Jul 2023 11:08:23 +0200 Subject: [PATCH] Fix ensureDN --- lib/client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/client.js b/lib/client/client.js index d24f169..10959fc 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -80,7 +80,7 @@ function validateControls (controls) { function ensureDN (input) { if (DN.isDn(input)) { - return DN + return input } else if (typeof (input) === 'string') { return DN.fromString(input) } else {