diff --git a/files/aldap.py b/files/aldap.py index dc5021f..cb5a8cb 100644 --- a/files/aldap.py +++ b/files/aldap.py @@ -70,8 +70,8 @@ def __decode__(self, word:bytes) -> str: return word.decode("utf-8") def __findMatch__(self, group:str, adGroup:str): - # Extract the Common Name from the string (letters, spaces and underscores) - adGroup = re.match('CN=((\w*\s?_?]*)*)', adGroup).group(1) + # Extract the Common Name from the string (letters, spaces, underscores and hyphens) + adGroup = re.match('CN=((\w*\s?_?-?)*)', adGroup).group(1) # Disable case sensitive if not self.groupCaseSensitive: