Skip to content

Commit

Permalink
login: fix login was working on one machine but not another
Browse files Browse the repository at this point in the history
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
  • Loading branch information
robvdl committed Apr 2, 2024
1 parent 915e026 commit 44bf494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sambal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 44bf494

Please sign in to comment.