• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unable to add item to Keychain when running as Daemon: ENOENT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: SQL Development
  • Next by Date: Re: Bind checkbox in menu?
  • Previous by thread: Re: Draw BitmapContext to screen repeatedly, Pre-Tiger
  • Next by thread: NSDatePicker and NSNull
  • Index(es):
    • Date
    • Thread