1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-22 19:23:22 +00:00

ignore case

This commit is contained in:
Kyle Spearrin
2020-06-04 09:59:45 -04:00
parent f53c1f5605
commit acfa8632af
2 changed files with 2 additions and 2 deletions

View File

@@ -231,7 +231,7 @@ export class LdapDirectoryService implements DirectoryService {
}
private makeSearchPath(pathPrefix: string) {
if (this.dirConfig.rootPath.indexOf('dc=') === -1) {
if (this.dirConfig.rootPath.toLowerCase().indexOf('dc=') === -1) {
return pathPrefix;
}
if (this.dirConfig.rootPath != null && this.dirConfig.rootPath.trim() !== '') {