jaraco / keyring

MIT License
1.24k stars 157 forks source link

How to make passwords accessible by the Windows LocalSystem account for a Windows service? #533

Open BetterAutomations opened 2 years ago

BetterAutomations commented 2 years ago

I can keyring.set_password() as my own username. But my service must run as the LocalSystem account. How can I make saved passwords accessible by this account? I ran Python as that account and get_password() returned nothing, whereas it returns the password on my own account.

jaraco commented 2 years ago

Are you able to run set_password in the LocalSystem context?

Your question is really a Windows question. I'd suggest to do some research on the Windows Credential Manager and maybe look at resources like Stack Overflow to see if others have encountered the same problem (perhaps not with keyring but with another system using the Credential Management APIs).