mirror of https://github.com/portainer/portainer
fix(authentication): allow whitespaces when loading AD OU name EE-5206 (#9978)
parent
0b8d72bfd4
commit
6aa978d5e9
|
@ -41,7 +41,7 @@ export default class LdapSettingsBaseDnBuilderController {
|
||||||
}
|
}
|
||||||
|
|
||||||
getOUValues(dn, domainSuffix = '') {
|
getOUValues(dn, domainSuffix = '') {
|
||||||
const regex = /(\w+)=(\w*),?/;
|
const regex = /(\w+)=([a-zA-Z0-9_ ]*),?/;
|
||||||
let ouValues = [];
|
let ouValues = [];
|
||||||
let left = dn;
|
let left = dn;
|
||||||
let match = left.match(regex);
|
let match = left.match(regex);
|
||||||
|
|
Loading…
Reference in New Issue