Skip to content

Commit

Permalink
Merge pull request #289 from mahendrapaipuri/fix_bind_dn_validator
Browse files Browse the repository at this point in the history
fix: Ensure a list `bind_dn_template` is properly validated
  • Loading branch information
manics authored Oct 29, 2024
2 parents dde10a8 + 04369a6 commit 46bc7e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldapauthenticator/ldapauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def _validate_bind_dn_template(self, proposal):
rv = []
if isinstance(proposal.value, str):
rv = [proposal.value]
else:
rv = proposal.value
if "" in rv:
self.log.warning("Ignoring blank 'bind_dn_template' entry!")
rv = [e for e in rv if e]
Expand Down

0 comments on commit 46bc7e6

Please sign in to comment.