Skip to content

Commit

Permalink
Merge pull request #26 from dignajar/bugfix/case-insensitive-for-groups
Browse files Browse the repository at this point in the history
bugfix for #25
  • Loading branch information
dignajar authored Jun 14, 2021
2 parents ef91a43 + 1665011 commit e1eff60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/aldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __decode__(self, word:bytes) -> str:

def __findMatch__(self, group:str, adGroup:str):
# Extract the Common Name from the string (letters, spaces, underscores and hyphens)
adGroup = re.match('CN=((\w*\s?_?-?)*)', adGroup).group(1)
adGroup = re.match('(?i)CN=((\w*\s?_?-?)*)', adGroup).group(1)

# Disable case sensitive
if not self.groupCaseSensitive:
Expand Down

0 comments on commit e1eff60

Please sign in to comment.