示例#1
0
文件: creds.py 项目: ynzheng/Asenal
 def _resolve_servers_for_domain(self, domain, force=False):
     """Resolve domain controllers for a domain."""
     if self.m_use_system_config:
         return
     if domain in self.m_domains and not force:
         return
     locator = factory(Locator)
     result = locator.locate_many(domain)
     self.m_domains[domain] = list(result)
     # Re-init every time
     self._init_config()
     self._write_config()
     self._activate_config()
示例#2
0
 def _resolve_servers_for_domain(self, domain, force=False):
     """Resolve domain controllers for a domain."""
     if self.m_use_system_config:
         return
     if domain in self.m_domains and not force:
         return
     locator = factory(Locator)
     result = locator.locate_many(domain)
     self.m_domains[domain] = list(result)
     # Re-init every time
     self._init_config()
     self._write_config()
     self._activate_config()
示例#3
0
文件: client.py 项目: ynzheng/Asenal
 def _locator(self):
     """Return our resource locator."""
     if self.m_locator is None:
         self.m_locator = factory(Locator)
     return self.m_locator
示例#4
0
 def _locator(self):
     """Return our resource locator."""
     if self.m_locator is None:
         self.m_locator = factory(Locator)
     return self.m_locator