• 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
Help! password storage and usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help! password storage and usage


  • Subject: Help! password storage and usage
  • From: David Feldman <email@hidden>
  • Date: Wed, 07 Aug 2002 09:48:21 -0400

I'm stumped. My app needs to allow users to log onto remote AppleShare
servers, including those for which the username is not their local username.

Currently, it simply places a system() call to mount_afp. It looks as though
this could also be done with NSTask (is that better?). The password is
omitted from the call, so if the user has stored one in his Keychain it
retrieves it there. This works fine except: (1) the user can't use my app to
log onto a server for which he has not previously stored a password in his
Keychain, and (2) the app needs to run in an automated mode sometimes, and
won't be able to do that if the user has not previously given permission to
unlock the Keychain for a particular server.

So I guess what I'd like to do is provide a password field and use it to
store the passwords in the user's data file. This leaves me with two
problems, and I can't figure out how to solve them:

1. How do I store and retrieve passwords in a secure manner? The data file
is a simple XML property list.
2. How do I pass them to mount_afp (or whatever I'm using) in a secure
manner?

Ideally, I think I'd like to leave this as a pure Cocoa app, partially
because I'm unfamiliar with the Carbon environment, but also isn't Cocoa a
better (and more forward-thinking) way to go?

If anyone can help me out, I would be extremely grateful. My users are
getting restless.

Thanks,
--Dave

----------------------------------------------------------------------
David A. Feldman
User Interface Designer
email@hidden
http://designtheworld.com
----------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Accessor methods and (auto)release: conclusion
  • Next by Date: Re: Dock Alert: Was: Sheet, window closing, application quitting
  • Previous by thread: Re: Cycle Windows keyboard shortcut - WORKAROUND
  • Next by thread: forwardInvocation: Works Locally but crashes with DO
  • Index(es):
    • Date
    • Thread