From 44bf494155108850b62e4595cd51b1c527a72d58 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Tue, 2 Apr 2024 23:56:29 +1300 Subject: [PATCH] login: fix login was working on one machine but not another After comparing with Samba's code in CredentialOptions.get_credentials, it appears the line I took out was actually needed: creds.guess(lp) I took that line out initially because I didn't think it was needed, turns out I was wrong. Closes #66 --- src/sambal/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sambal/client.py b/src/sambal/client.py index 273c111..cbd09b4 100644 --- a/src/sambal/client.py +++ b/src/sambal/client.py @@ -24,6 +24,7 @@ def connect_samdb(host, username, password, realm=None) -> SamDB: lp.load_default() creds = Credentials() + creds.guess(lp) creds.set_username(username) creds.set_password(password)