From 80101670063ef5dd0cce7629d8a42160cd66e6b2 Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:03:04 -0300 Subject: [PATCH] fix(authentication): allow nested whitespaces on AD OU names EE-5206 (#10261) --- .../ldap-settings-dn-builder.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portainer/settings/authentication/ldap/ldap-settings-dn-builder/ldap-settings-dn-builder.controller.js b/app/portainer/settings/authentication/ldap/ldap-settings-dn-builder/ldap-settings-dn-builder.controller.js index 2c15638f8..f761a7619 100644 --- a/app/portainer/settings/authentication/ldap/ldap-settings-dn-builder/ldap-settings-dn-builder.controller.js +++ b/app/portainer/settings/authentication/ldap/ldap-settings-dn-builder/ldap-settings-dn-builder.controller.js @@ -49,7 +49,7 @@ export default class LdapSettingsBaseDnBuilderController { const [, type, value] = match; ouValues.push({ type, value }); left = left.replace(regex, ''); - match = left.match(/(\w+)=(\w+),?/); + match = left.match(regex); } return ouValues; }