fix(authentication): allow whitespaces when loading AD OU name EE-5206 (#9978)

pull/10054/head
matias-portainer 2023-08-14 12:18:21 -03:00 committed by GitHub
parent 0b8d72bfd4
commit 6aa978d5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default class LdapSettingsBaseDnBuilderController {
}
getOUValues(dn, domainSuffix = '') {
const regex = /(\w+)=(\w*),?/;
const regex = /(\w+)=([a-zA-Z0-9_ ]*),?/;
let ouValues = [];
let left = dn;
let match = left.match(regex);