I am not sure whether accessing a user keychain works from within a
process started outside of a graphic login session in 10.2. Maybe Perry
will read this and comment. :-)
-ken
On Dec 19, 2004, at 5:28 AM, Frederik Seiffert wrote:
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