enable autologin only when password is present
This commit is contained in:
@@ -95,6 +95,7 @@ class RDPClientController(pdu.layer.PDUClientListener):
|
||||
Set password for session
|
||||
@param password: password of session
|
||||
"""
|
||||
self.setAutologon()
|
||||
self._pduLayer._info.password.value = password
|
||||
|
||||
def setDomain(self, domain):
|
||||
@@ -104,6 +105,12 @@ class RDPClientController(pdu.layer.PDUClientListener):
|
||||
"""
|
||||
self._pduLayer._info.domain.value = domain
|
||||
|
||||
def setAutologon(self):
|
||||
"""
|
||||
@summary: enable autologon
|
||||
"""
|
||||
self._pduLayer._info.flag |= pdu.data.InfoFlag.INFO_AUTOLOGON
|
||||
|
||||
def addClientObserver(self, observer):
|
||||
"""
|
||||
Add observer to RDP protocol
|
||||
|
||||
Reference in New Issue
Block a user