Skip to content

Commit

Permalink
Merge pull request #956 from cannatag/fix-posix-check
Browse files Browse the repository at this point in the history
Fix a logic check for raw gssapi credentials in the kerberos module.
  • Loading branch information
zorn96 committed Jun 20, 2021
2 parents 976e619 + bf2a6a2 commit 6e25d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap3/protocol/sasl/kerberos.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _common_determine_authz_id_and_creds(connection):
if len(connection.sasl_credentials) >= 2 and connection.sasl_credentials[1]:
authz_id = connection.sasl_credentials[1].encode("utf-8")
if len(connection.sasl_credentials) >= 3 and connection.sasl_credentials[2]:
if not posix_gssapi_unavailable:
if posix_gssapi_unavailable:
raise LDAPPackageUnavailableError('The winkerberos package does not support specifying raw credentials'
'to initiate GSSAPI Kerberos communication. A ticket granting ticket '
'must have already been obtained for the user before beginning a '
Expand Down

0 comments on commit 6e25d5c

Please sign in to comment.