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 Sep 19, 2024
1 parent 104df50 commit 2ed37ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ For details on what can be configured and its effects, refer to the
ldap3 package's documentation and code:

- ldap3 documentation: https://ldap3.readthedocs.io/en/latest/ssltls.html#the-tls-object
- ldap3 code: https://github.com/cannatag/ldap3/blob/v2.9.1/ldap3/core/tls.py#L59-L82
- ldap3 code: https://github.com/cannatag/ldap3/blob/v2.9.1/ldap3/core/tls.py#L59-L82

You can for example configure this like:

Expand Down
5 changes: 4 additions & 1 deletion ldapauthenticator/tests/test_ldapauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

from ldap3.core.exceptions import LDAPSSLConfigurationError

from ..ldapauthenticator import TlsStrategy


Expand Down Expand Up @@ -206,4 +207,6 @@ async def test_ldap_tls_kvargs_config_passthrough(authenticator):
except LDAPSSLConfigurationError:
pass
else:
raise ValueError("Expected configuring tls_kvargs.ca_certs_file to a non-existing file to raise an error")
raise ValueError(
"Expected configuring tls_kvargs.ca_certs_file to a non-existing file to raise an error"
)

0 comments on commit 2ed37ef

Please sign in to comment.