Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 9, 2024
1 parent d5e2fc2 commit 9f95bbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ldapauthenticator/ldapauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ def resolve_username(self, username_supplied_by_user):
return (None, None)

search_filter = self.lookup_dn_search_filter.format(
login_attr=self.user_attribute, login=escape_filter_chars(username_supplied_by_user)
login_attr=self.user_attribute,
login=escape_filter_chars(username_supplied_by_user),
)
msg = "\n".join(
[
Expand Down Expand Up @@ -436,7 +437,7 @@ def authenticate(self, handler, data):
)
group_filter = group_filter.format(
userdn=escape_filter_chars(userdn),
uid=escape_filter_chars(username)
uid=escape_filter_chars(username),
)
group_attributes = ["member", "uniqueMember", "memberUid"]
found = conn.search(
Expand Down

0 comments on commit 9f95bbf

Please sign in to comment.