Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting user keychain as root



Hi,

I have a command-line application running completely as root (i.e. both uid and euid are 0), from which I need to find a password in the keychain of the currently logged-in user (in case of Fast User Switching, the currently 'active' user should be taken).

The function SecKeychainSetPreferenceDomain with a domain of kSecPreferencesDomainUser seems to be what I'm looking for, but unfortunately the application needs to run on 10.2 and this function is only available in 10.3 and later.

Is there a way to accomplish this on Mac OS X 10.2?

Thanks!
Frederik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.