MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / onAuthFailed

Method onAuthFailed

pager_lib/smb/SMBProtocol.py:150–160  ·  view source on GitHub ↗

Override this method in your *SMBProtocolFactory* subclass to add in post-authentication handling. This method will be called when the server has replied that the SMB connection has been successfully authenticated. If you want to retry authenticating from this method,

(self)

Source from the content-addressed store, hash-verified

148 pass
149
150 def onAuthFailed(self):
151 """
152 Override this method in your *SMBProtocolFactory* subclass to add in post-authentication handling.
153 This method will be called when the server has replied that the SMB connection has been successfully authenticated.
154
155 If you want to retry authenticating from this method,
156 1. Disconnect the underlying SMB connection (call ``self.instance.transport.loseConnection()``)
157 2. Create a new SMBProtocolFactory subclass instance with different user credientials or different NTLM algorithm flag.
158 3. Call ``reactor.connectTCP`` with the new instance to re-establish the SMB connection
159 """
160 pass
161
162 #
163 # Public Methods

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected