I'm using the NameAndPassword authorization plugin to login through the OS X lock screen (the fixed version of the plugin since original is broken). I need it to be able to access stored passwords somehow, and currently I'm trying to achieve this by using keychains.
I managed to create the keychain and save some password inside, along with the ACL needed to access the password without prompting the user. Any application added to the ACL works fine with no prompts, but when I try to access the keychain with this NameAndPassword authorization plugin, I'm getting -25293 The user name or passphrase you entered is not correct
error when calling SecKeychainFindGenericPassword
to obtain the password.
I have tried adding both the /Library/Security/SecurityAgentPlugins/NameAndPassword.bundle
bundle and the /Library/Security/SecurityAgentPlugins/NameAndPassword.bundle/Contents/MacOS/NameAndPassword
executable itself to the ACL, but the error is always the same.
I believe this might be due to this plugin is being ran as another user (or as no user at all). What can I do to get rid of this error? Or maybe it will not be possible? In such case, how am I supposed to store and access the passwords from within this plugin, when it can't access home directory? I've been struggling with this for weeks now.
Check if you changed the ownership of the plugin bundle to root:wheel Use this command: