Skip to content

Commit

Permalink
[WIP] fix typosx
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePirateWhoSmellsOfSunflowers committed May 19, 2023
1 parent 7f6284d commit 4fb2fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pywerview/requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, domain_controller, domain=str(), user=str(), password=str(),
self._ads_prefix = None
self._ldap_connection = None
self._base_dn = None

logger = logging.getLogger('pywerview_main_logger.LDAPRequester')
self._logger = logger

Expand Down Expand Up @@ -237,7 +237,7 @@ def _do_schannel_auth(self, ldap_scheme, formatter):
self._logger.warning('Using certificate authentication but --tls not provided, setting up TLS with StartTLS')
ldap_connection_kwargs['authentication'] = ldap3.SASL
ldap_connection_kwargs['sasl_mechanism'] = ldap3.EXTERNAL

self._logger.debug('LDAP binding parameters: server = {0} / cert = {1} '
'/ key = {2} / {3} TLS / SChannel auth'.format(self._domain_controller, self._user_cert, self._user_key, tls_mode))

Expand All @@ -255,7 +255,7 @@ def _do_schannel_auth(self, ldap_scheme, formatter):
self._logger.critical('StartTLS failed, exiting')
sys.exit(-1)
except Exception as e:
# I don't really understand exception when using SCHannel authentication, but if you see this message
# I don't really understand exception when using SChannel authentication, but if you see this message
# your cert and key are probably not valid
self._logger.critical('Exception during SChannel authentication : {}'.format(e))
sys.exit(-1)
Expand Down

0 comments on commit 4fb2fce

Please sign in to comment.