Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 1820cc1

Browse files
author
mpgn
committed
Show FQDN instead of domain name
1 parent 1e71991 commit 1820cc1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cme/protocols/smb.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def enum_host_info(self):
213213
#if "STATUS_ACCESS_DENIED" in e:
214214
pass
215215

216-
self.domain = self.conn.getServerDomain()
216+
self.domain = self.conn.getServerDNSDomainName()
217217
self.hostname = self.conn.getServerName()
218218
self.server_os = self.conn.getServerOS()
219219
self.signing = self.conn.isSigningRequired() if self.smbv1 else self.conn._SMBConnection._Connection['RequireSigning']
@@ -224,9 +224,6 @@ def enum_host_info(self):
224224
if not self.domain:
225225
self.domain = self.hostname
226226

227-
if self.args.kerberos:
228-
self.domain = self.conn.getServerDNSDomainName()
229-
230227
self.db.add_computer(self.host, self.hostname, self.domain, self.server_os)
231228

232229
try:

0 commit comments

Comments
 (0)