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

Commit b778306

Browse files
author
mpgn
committed
Always print FQDN
1 parent 3b57fb0 commit b778306

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cme/protocols/smb.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
@@ -241,8 +238,9 @@ def enum_host_info(self):
241238
if self.args.domain:
242239
self.domain = self.args.domain
243240

244-
if self.args.local_auth:
245-
self.domain = self.hostname
241+
# always print FQDN even if local auth
242+
# if self.args.local_auth:
243+
# self.domain = self.hostname
246244

247245
#Re-connect since we logged off
248246
self.create_conn_obj()

0 commit comments

Comments
 (0)