Unable to add item to Keychain when running as Daemon: ENOENT
Unable to add item to Keychain when running as Daemon: ENOENT
- Subject: Unable to add item to Keychain when running as Daemon: ENOENT
- From: Daniel Eggert <email@hidden>
- Date: Fri, 22 Sep 2006 23:59:19 +0200
Hi all,
I've put together a small daemon application in Cocoa. I try to store
password in my own keychain at
/Library/Application Support/Network Authenticator/credentials.keychain
But when I call
status = SecKeychainAddGenericPassword(keychain,
[serviceNameData length],
[serviceNameData bytes],
[accountData length],
[accountData bytes],
[passwordData length],
[passwordData bytes],
NULL);
I get a return value of 100002 / "No such file or directory (ENOENT)".
I only have this problem when running as the "daemon" user, not when
running as a normal login user.
The daemon user can create a keychain file, but fails executing
SecKeychainAddGenericPassword.
What did I miss?
Thanks in advance for any help / comments.
/Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden