Key storage OnCheckUserKey being called twice.

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

Key storage OnCheckUserKey being called twice.

Post by snorkel » Fri 26 Feb 2016 21:34

Hi,
I implemented the OnCheckUserKey event and it is being called twice, is it supposed to be called twice?

I have logging in the event and it's showing the event firing twice.
Then after the second time the user is logged in and everything is fine.

This is the output from the log:
(It's a log queue that pushes every second)

02/26/2016 03:13:48 PM:[Logon] User xxxxx logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)
02/26/2016 03:13:50 PM:[Logon] User xxxxX logged in from 127.0.0.1:63887 (Auth Type: SFTP Pubkey)

I noticed that the second time it is called the clientinfo.data is not nil like the first time so I put this in there for now:

Code: Select all

      if assigned(ClientInfo.Data) then
       begin
               Accept:=true;
               exit;
       end; 

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Key storage OnCheckUserKey being called twice.

Post by ViktorV » Wed 02 Mar 2016 16:38

Yes, you are right. Currently, on attempt to connect to the server, the OnCheckUserKey event is called twice. We are investigating this behavior of SecureBridge and will inform about the result.

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

Re: Key storage OnCheckUserKey being called twice.

Post by snorkel » Wed 02 Mar 2016 22:16

ViktorV wrote:Yes, you are right. Currently, on attempt to connect to the server, the OnCheckUserKey event is called twice. We are investigating this behavior of SecureBridge and will inform about the result.

Ok, Thanks :-)

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Key storage OnCheckUserKey being called twice.

Post by ViktorV » Wed 13 Apr 2016 06:48

Bug with repeated calls to the TScStorage.OnCheckUserKey event handler is fixed. The new SecureBridge build 7.0.1 including the fix is already available for download now.

Post Reply