Skip to content

Removed logging configuration #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions asyauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
# Author:
# Tamas Jos (@skelsec)
#

import logging

logger = logging.getLogger('asyauth')
handler = logging.StreamHandler()
formatter = logging.Formatter(
'%(asctime)s %(name)-12s %(levelname)-8s %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
logger.propagate = False
1 change: 0 additions & 1 deletion asyauth/protocols/credssp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging

logger = logging.getLogger('asyauth.credssp')
logger.propagate = True
1 change: 0 additions & 1 deletion asyauth/protocols/kerberos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging

logger = logging.getLogger('asyauth.kerberos')
logger.propagate = True
18 changes: 10 additions & 8 deletions asyauth/protocols/kerberos/client/wsnetdirect.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import os
from asyauth import logger
from asyauth.protocols.kerberos.gssapi import get_gssapi
from asyauth.protocols.kerberos.gssapismb import get_gssapi as gssapi_smb
from asyauth.common.winapi.token import InitialContextToken
from asyauth.common.winapi.constants import ISC_REQ

from minikerberos.protocol.encryption import Key, _enctype_table
from minikerberos.protocol.asn1_structs import AP_REP, AP_REQ
from minikerberos.protocol.encryption import Key
from minikerberos.gssapi.gssapi import GSSWrapToken
from minikerberos.protocol.asn1_structs import AP_REP
from minikerberos.protocol.asn1_structs import AP_REQ
from minikerberos.protocol.encryption import _enctype_table
from minikerberos.protocol.encryption import Key
from wsnet.agent.direct.auth import WSNETDirectAuth

from asyauth import logger
from asyauth.common.winapi.constants import ISC_REQ
from asyauth.common.winapi.token import InitialContextToken
from asyauth.protocols.kerberos.gssapi import get_gssapi
from asyauth.protocols.kerberos.gssapismb import get_gssapi as gssapi_smb


class KerberosClientWSNETDirect:
def __init__(self, credential):
Expand Down
1 change: 0 additions & 1 deletion asyauth/protocols/ntlm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging

logger = logging.getLogger('asyauth.ntlm')
logger.propagate = True
6 changes: 4 additions & 2 deletions asyauth/protocols/ntlm/client/sspiproxy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from asyauth import logger
from asyauth.protocols.ntlm.client.native import NTLMClientNative
from wsnet.operator.sspiproxy import WSNETSSPIProxy
from wsnet.operator.sspiproxy import WSNETSSPIProxy

from asyauth.common.winapi.constants import ISC_REQ
from asyauth.protocols.ntlm.client.native import NTLMClientNative


class NTLMClientSSPIProxy:
def __init__(self, credential):
Expand Down
5 changes: 3 additions & 2 deletions asyauth/protocols/ntlm/client/wsnet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from asyauth import logger
from asyauth.protocols.ntlm.client.native import NTLMClientNative
from wsnet.pyodide.clientauth import WSNETAuth

from asyauth.common.winapi.constants import ISC_REQ
from asyauth.protocols.ntlm.client.native import NTLMClientNative


class NTLMClientWSNET:
def __init__(self, credential):
Expand Down
23 changes: 11 additions & 12 deletions asyauth/protocols/ntlm/relay/native.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

import traceback
import asyncio
import logging
import copy
import logging
import os
import traceback
from typing import Callable

from asyauth import logger
from asyauth.common.credentials.ntlm import NTLMCredential
from asyauth.protocols.ntlm.structures.serverinfo import NTLMServerInfo
from asyauth.protocols.ntlm.structures.negotiate_flags import NegotiateFlags
from asyauth.protocols.ntlm.messages.negotiate import NTLMNegotiate
from asyauth.protocols.ntlm.messages.challenge import NTLMChallenge
from asyauth.protocols.ntlm.messages.authenticate import NTLMAuthenticate
from asyauth.protocols.ntlm.creds_calc import NTLMCredentials
from asyauth.protocols.ntlm.structures.avpair import MsvAvFlags, AVPAIRType, AVPair
from asyauth.protocols.ntlm.messages.challenge import NTLMChallenge
from asyauth.protocols.ntlm.messages.negotiate import NTLMNegotiate
from asyauth.protocols.ntlm.structures.avpair import AVPair
from asyauth.protocols.ntlm.structures.avpair import AVPAIRType
from asyauth.protocols.ntlm.structures.avpair import MsvAvFlags
from asyauth.protocols.ntlm.structures.challenge_response import NTLMv2Response
from minikerberos.gssapi.channelbindings import ChannelBindingsStruct
from typing import Callable
from asyauth.protocols.ntlm.structures.negotiate_flags import NegotiateFlags
from asyauth.protocols.ntlm.structures.serverinfo import NTLMServerInfo


async def log_cb_dummy(msg):
print(msg)
Expand Down