1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

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

This commit is contained in:
matias-portainer 2023-08-14 12:18:07 -03:00 committed by GitHub
parent 8355d449c5
commit 0ef4aad79a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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