Re: Password entry dialog
Le 15 mai 08 à 23:17, Ron Aldrich a écrit : On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote: All security related API are in the Security Framework(s). You do not have control of what to user enter in this dialog, its main purpose is to create some "rights" and return them to you if the user is allow to use them. Usually this dialog is automatically displayed when you query some authorizaton. The cocoa way to do this is to use the "SFAuthorization" class from SecurityFoundation framework. What do you want to do exactly with this dialog ? In my case, I'm needing to manage the password for a USB Thumb drive that supports a password protected area. I could implement this by itself pretty easily, using the NSSecureTextField, except that I would like to go much farther than simple password entry. I would like provide the ability for users to store the password on their keychain. I would like to utilize the "Password Assistant" for creating passwords. I found a discussion of the Password Assistant, along with a link to a sample program using it at http://www.cocoadev.com/index.pl?PasswordAssistant Unfortunately, the methods needed to utilize it would indicate to me that Apple considers it to be a private API. That same discussion also seems to indicate that the password entry dialog used in diskimages-helper is also private. So, unless I'm missing something, it looks like I'm going to be rolling my own dialog. Thanks for your time, Ron Aldrich Software Architects, Inc. Ok, you mean "password creation" dialog, not "password query" dialog. Sorry for the confusion. So no, I don't think there is a public API to invoke it. You can fill a bug report to request this features. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Password entry dialog
On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote: All security related API are in the Security Framework(s). You do not have control of what to user enter in this dialog, its main purpose is to create some "rights" and return them to you if the user is allow to use them. Usually this dialog is automatically displayed when you query some authorizaton. The cocoa way to do this is to use the "SFAuthorization" class from SecurityFoundation framework. What do you want to do exactly with this dialog ? In my case, I'm needing to manage the password for a USB Thumb drive that supports a password protected area. I could implement this by itself pretty easily, using the NSSecureTextField, except that I would like to go much farther than simple password entry. I would like provide the ability for users to store the password on their keychain. I would like to utilize the "Password Assistant" for creating passwords. I found a discussion of the Password Assistant, along with a link to a sample program using it at http://www.cocoadev.com/index.pl?PasswordAssistant Unfortunately, the methods needed to utilize it would indicate to me that Apple considers it to be a private API. That same discussion also seems to indicate that the password entry dialog used in diskimages-helper is also private. So, unless I'm missing something, it looks like I'm going to be rolling my own dialog. Thanks for your time, Ron Aldrich Software Architects, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Password entry dialog
On May 14, 2008, at 5:12 PM, Ron Aldrich wrote: Is there a public API for password entry dialogs? Or should I just roll my own? Perhaps NSSecureTextField would be what you want. -==- Jack Repenning [EMAIL PROTECTED] Project Owner SCPlugin http://scplugin.tigris.org "Subversion for the rest of OS X" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Password entry dialog
All security related API are in the Security Framework(s). You do not have control of what to user enter in this dialog, its main purpose is to create some "rights" and return them to you if the user is allow to use them. Usually this dialog is automatically displayed when you query some authorizaton. The cocoa way to do this is to use the "SFAuthorization" class from SecurityFoundation framework. What do you want to do exactly with this dialog ? Le 15 mai 08 à 02:12, Ron Aldrich a écrit : Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there a public API for password entry dialogs? Or should I just roll my own? Thanks, Ron Aldrich Software Architects, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Password entry dialog
On May 14, 2008, at 7:12 PM, Ron Aldrich wrote: Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there a public API for password entry dialogs? Or should I just roll my own? What are you trying to do? If you just need a dialog with a password field, NSSecureTextField is your friend (say, for example, to send over a secure channel on the network to log in to your network based service). If you want to have that dialog that authenticates the user to allow them to perform tasks as root (or some other elevated privilege), you don't show that dialog - the authentication mechanism handles it. Look at AuthorizationExecuteWithPrivileges and friends. Under no circumstances should you try to roll your own "well, lets ask for the root password using our own dialog, and then pass it to an NSTask invoking sudo with the dangerous thing that mortals aren't suppose to do". Glenn Andreas [EMAIL PROTECTED] <http://www.gandreas.com/> wicked fun! m.o.t.e.s. | minute object twisted environment simulation ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Password entry dialog
Look at the Security framework and functions like AuthorizationExecuteWithPrivileges. On May 14, 2008, at 6:12 PM, Ron Aldrich wrote: Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there a public API for password entry dialogs? Or should I just roll my own? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Password entry dialog
Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there a public API for password entry dialogs? Or should I just roll my own? Thanks, Ron Aldrich Software Architects, Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]