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; }