realbasic-nug
[Top] [All Lists]

Re: Authenticate on Mac

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Authenticate on Mac
From: Giles Williams <giles dot williams at gmail dot com>
Date: Fri, 30 Jun 2006 07:24:40 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:subject:date:to:x-mailer:from; b=KYpg5iTzqPELGm3t+xpnrLeUi6EM1XQXxMKPcWQvoukA6gcFkCLcjnwV5IGDELgWx4kDgzC9Qzu98fL0WQK8ba6xzlRfDZFmrxK0ZTvD76nu2iunIHKIWuBwXgzFvqS/czE0fA4vMpCLlDPYzWnxDmYSP3zkZC90te0BcY1psXM=
References: <1hhpryb dot 1w2grur1dzhkclM%support at monkeybreadsoftware dot de> <4135F290-143F-4508-97D7-B23BC0972D08 at mac dot com> <2E32869A-53DD-4F0C-90D5-CE9489A71A9D at declareSub dot com>
Hi Charles.

Whenever I try to use your example, I get an error of -60031

I have simply taken out the timer, changed the DataAvailable Event to simply MsgBox Me.ReadAll and changed the code on the button to:

if AuthorizationShell1.AuthorizeAndExecute("/Users/gilesw/ isrunning") then

  elseif AuthorizationShell1.ErrorNumber <> 0 then
    msgBox "Unknown error! " + str(AuthorizationShell1.ErrorNumber)
  else
    msgBox "User Cancelled it!"
  end if

If I run "sudo /Users/gilesw/isrunning" in the Terminal, it works and returns "true" or "false".

Giles Williams.

On 29 Jun 2006, at 22:34, Charles Yeomans wrote:

Try <http://www.maccoding.com/rbexamples/Authorization.sit>.

Charles Yeomans

On Jun 29, 2006, at 5:28 PM, Giles Williams wrote:

Hi I tried these but always got an error code of -1?

Is there any open-source ways of doing this, as this is for an open-source project?

Giles Williams.

On 29 Jun 2006, at 21:04, Christian Schmitz wrote:

Giles Williams <giles dot williams at gmail dot com> wrote:

Does anybody know how to get the authenticate dialog for Mac to show up?

Try the AuthorizationMBS class and the examples included with my
plugins.

Gruß
Christian

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>