Keyboard Interactive Authentication?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Keyboard Interactive Authentication?

Post by snorkel » Fri 11 Sep 2009 17:10

How do I implement Keyboard Interactive authentication?
I see there is a option for it now.

Thanks,

Snorkel

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 14 Sep 2009 07:26

You should set the TSSHClient.Autentification property to atKeyboardInteractive and process the TScSSHClient.AuthenticationPrompt event.
You can look at the example of using this autentification method in the SSHClient demo of SecureBridge.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Mon 14 Sep 2009 22:46

Dimon wrote:You should set the TSSHClient.Autentification property to atKeyboardInteractive and process the TScSSHClient.AuthenticationPrompt event.
You can look at the example of using this autentification method in the SSHClient demo of SecureBridge.
Hi,

I setup the event, but I keep getting a Access Violation:

procedure TForm1.ScSSHClient1AuthenticationPrompt(Sender: TObject; const Name, Instruction: string;
const Prompts: array of string; var Responses: array of string);
begin
Responses[0]:='mypassword';
end;

From looking at the demo this all it seems to be doing.

Am I missing something?

Thanks,

Snorkel

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 15 Sep 2009 07:10

To solve the problem, try to use the following code:

Code: Select all

if Length(Responses) > 0 then
  Responses[0]:='mypassword';

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Tue 15 Sep 2009 15:11

Dimon wrote:To solve the problem, try to use the following code:

Code: Select all

if Length(Responses) > 0 then
  Responses[0]:='mypassword';
Thanks,
Works now.

Post Reply