Skip to content

Commit 0383248

Browse files
committed
fix(auth): propagate kerberos_login return value in ccache auth path
1 parent 1ea9180 commit 0383248

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

nxc/connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,7 @@ def login(self):
559559
with sem:
560560
username = self.args.username[0] if len(self.args.username) else CCache.parseFile()[1]
561561
password = self.args.password[0] if len(self.args.password) else ""
562-
self.kerberos_login(self.domain, username, password, "", "", self.kdcHost, True)
563-
self.logger.info("Successfully authenticated using Kerberos cache")
564-
return True
562+
return self.kerberos_login(self.domain, username, password, "", "", self.kdcHost, True)
565563

566564
if self.args.pfx_cert or self.args.pfx_base64 or self.args.pem_cert:
567565
self.logger.debug("Trying to authenticate using Certificate pfx")

0 commit comments

Comments
 (0)