Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Feature Request: Check 'Local Items Keychain' independently from 'Login Keychain' #17

Open
ScarabMonkey opened this issue Jun 30, 2016 · 2 comments
Assignees

Comments

@ScarabMonkey
Copy link

We have an issue with people who change their password on their mac due to being prompted by the OS.
This has the effect of successfully updating their Login Keychain password, but still leaves the Local Items keychain with the old password.

This software appears to be checking the Login keychain and then changing both keychains if they are out-of-sync - thereby assuming that both keychains have the same password. Would it be possible for this, instead, to check each of the keychains separately and set the passwords for those that are actually out-of-sync?

@russellhancox
Copy link
Contributor

Huh, I wouldn't have expected an OS prompt to let the passwords get out-of-sync.

I'm not sure it's possible to check the Local Items keychain separately, Keychain Services handles the Local Items keychain (mostly) transparently; we're not explicitly changing the password for that keychain, for example, it is handled automatically by setting the login keychain password.

We'll do some digging and see if this is possible.

@tburgin
Copy link
Contributor

tburgin commented Jul 1, 2016

I don't know of any supported way to verify the Local Items Keychain.
It looks like there are some private functions for non on-disk keychains. I will poke around.
https://opensource.apple.com/source/libsecurity_keychain/libsecurity_keychain-55050.9/lib/SecKeychain.cpp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants