Skip to content

Commit

Permalink
Merge pull request #21 from dignajar/bugfix/allow-hyphen-in-regex
Browse files Browse the repository at this point in the history
Bug fix: Allow Hyphen in regex
  • Loading branch information
dignajar authored Jun 7, 2021
2 parents 1c00212 + 7e2a485 commit 08a1587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/aldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 08a1587

Please sign in to comment.