perf: directory service db

This commit is contained in:
ibuler
2025-04-15 20:20:47 +08:00
committed by 老广
parent e286997090
commit 1fdd1036d3
8 changed files with 61 additions and 16 deletions

View File

@@ -274,6 +274,9 @@ class ConnectionToken(JMSOrgBaseModel):
def set_ad_domain_if_need(self, account):
if not self.protocol == 'rdp':
return
if account.ds_domain:
return
rdp = self.asset.platform.protocols.filter(name='rdp').first()
if not rdp or not rdp.setting:
return