Skip to content

Commit dd637cf

Browse files
committed
Fix setting username when we authenticate with ccache
1 parent b6a0599 commit dd637cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def print_host_info(self):
343343
self.logger.display(f"{self.server_os} (name:{self.hostname}) (domain:{self.domain}) ({signing}) ({cbt_status}) {ntlm}")
344344

345345
def kerberos_login(self, domain, username, password="", ntlm_hash="", aesKey="", kdcHost="", useCache=False):
346-
self.username = username if not self.username else self.username # With ccache we get the username from the ticket
346+
self.username = username if not self.args.use_kcache else self.username # With ccache we get the username from the ticket
347347
self.password = password
348348
self.domain = domain
349349
self.kdcHost = kdcHost

0 commit comments

Comments
 (0)