Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Keychain Problem (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] 6.3pr10
Next thread: [MBS] BevelButtonClockGetDate


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Keychain Problem   -   Carsten Friehe
   Re: [MBS] Keychain Problem   -   Christian Schmitz
    Re: [MBS] Keychain Problem   -   Carsten Friehe
    Re: [MBS] Keychain Problem   -   Carsten Friehe
     Re: [MBS] Keychain Problem   -   Christian Schmitz
      Re: [MBS] Keychain Problem   -   Christian Schmitz

[MBS] Keychain Problem
Date: 05.09.06 20:12 (Tue, 5 Sep 2006 21:12:46 +0200)
From: Carsten Friehe
Hi!

I used in my application the following code to retrieve a password from the
Keychain. This was taken directly from the documentation:
m=new KeyChainManagerMBS
s=new KeyChainRequestMBS
s.AccountName="Boss"
s.ServiceName="RBTest"
i=m.FindGenericPassword(s)
if i<>nil then
MsgBox "Found password: "+s.Password
i.Delete // delete it.
else
MsgBox "Password not found!"
end if

This worked in older MBS version without a problem, but now "i" is always
Nil, but in s.Password the correct password is set.

Is there something wrong in the plugin or has the new OS changed something
here?

Best Regards,
Carsten
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Keychain Problem
Date: 05.09.06 21:08 (Tue, 5 Sep 2006 22:08:37 +0200)
From: Christian Schmitz
Carsten Friehe <<email address removed>> wrote:

> Hi!
>
> Is there something wrong in the plugin or has the new OS changed something
> here?

You refer to this code fragment from AddGenericPassword:

// Example for reading and writing a generic password:

dim m as KeyChainManagerMBS
dim r as KeyChainRequestMBS
dim s as KeyChainRequestMBS
dim i as KeyChainItemMBS

m=new KeyChainManagerMBS
r=new KeyChainRequestMBS
r.AccountName="Boss"
r.ServiceName="RBTest"
r.Password="secret"
i=m.AddGenericPassword(r)
if i<>nil then
MsgBox "Password added to current keychain."
else
MsgBox "Could not add password to keychain. Maybe no Keychain
software installed or not enough permissions to create an entry in the
keychain (e.g. booted from CD)"
Return // exit
end if

// later...

m=new KeyChainManagerMBS
s=new KeyChainRequestMBS
s.AccountName="Boss"
s.ServiceName="RBTest"
i=m.FindGenericPassword(s)
if i<>nil then
MsgBox "Found password: "+s.Password
i.Delete // delete it.
else
MsgBox "Password not found!"
end if

Well, it does work here in RB 5.5 and 2006r3.

Gruß
Christian

-

Re: [MBS] Keychain Problem
Date: 05.09.06 21:20 (Tue, 5 Sep 2006 22:20:48 +0200)
From: Carsten Friehe
Hi Christian!

>You refer to this code fragment from AddGenericPassword:

Yes, but I used m. FindInternetPassword(s), but I copied it wrong into the
mail.

>Well, it does work here in RB 5.5 and 2006r3.

I will test it again tomorrow with 6.3pr10, I used 6.3pr6.
I am using RB 2006r3.

Carsten
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Keychain Problem
Date: 06.09.06 18:44 (Wed, 6 Sep 2006 19:44:44 +0200)
From: Carsten Friehe
Hi Christian!

>I will test it again tomorrow with 6.3pr10, I used 6.3pr6.
>I am using RB 2006r3.

I tested it today again with pr10 and the result is still the same. There
is Nil send back from FindInternetPassword.

Best Regards,
Carsten
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Keychain Problem
Date: 06.09.06 23:48 (Thu, 7 Sep 2006 00:48:45 +0200)
From: Christian Schmitz
Carsten Friehe <<email address removed>> wrote:

> Hi Christian!
>
> >I will test it again tomorrow with 6.3pr10, I used 6.3pr6.
> >I am using RB 2006r3.
>
> I tested it today again with pr10 and the result is still the same. There
> is Nil send back from FindInternetPassword.

Please send me offlist a project as small as possible which shows this
bug.

Gru0
Christian

Re: [MBS] Keychain Problem
Date: 07.09.06 18:59 (Thu, 7 Sep 2006 19:59:32 +0200)
From: Christian Schmitz
Christian Schmitz <<email address removed>> wrote:

> Please send me offlist a project as small as possible which shows this
> bug.

With such an example the bug was 5 minutes to fix :-)

Gruß
Christian

-