Re: [Firebird-devel] Response to op_accept_data

2021-07-07 Thread Jiří Činčura
> But we got a bit offtopic. Do you need help with subj any more? At the moment I need to start with the refactoring, until that's rolling, I think there's not much to do now. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Response to op_accept_data

2021-07-07 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 3:43 PM, Jiří Činčura wrote: I would almost say, I'll remove it then. :) But fbclient is sending it too, so I'll probably stick with tried and true behavior. Yes, certainly it should stay in place. (It's present since fb 1.0, and I have no idea who used network opcode in wrong way

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
I would almost say, I'll remove it then. :) But fbclient is sending it too, so I'll probably stick with tried and true behavior. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Tue, Jul 6, 2021, at 13:57, Alex Peshkoff via Firebird-devel wrote: > On 7/6/21 2:23 PM, Mark Rotteveel

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 2:23 PM, Mark Rotteveel wrote: On 2021-07-06 12:12, Alex Peshkoff via Firebird-devel wrote: Not understand your question. 4 packets were sent: 1. op_connect 2. op_attach 3. op_cont_auth 4. op_cont_auth What is op_connect + op_attach? The op_connect packet has a secondary op_attach

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Mark Rotteveel
On 2021-07-06 12:12, Alex Peshkoff via Firebird-devel wrote: Not understand your question. 4 packets were sent: 1. op_connect 2. op_attach 3. op_cont_auth 4. op_cont_auth What is op_connect + op_attach? The op_connect packet has a secondary op_attach code. Mark Firebird-Devel mailing

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> Not understand your question. > > 4 packets were sent: > 1. op_connect > 2. op_attach > 3. op_cont_auth > 4. op_cont_auth > > What is op_connect + op_attach? This (.NET)

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 12:44 PM, Jiří Činčura wrote: Made config match yours. During connect/auth/attach fbclient send 4 packets to server: op_connect, op_attach, op_cont_auth: (gdb) print packet->p_auth_cont $7 = {p_data = {cstr_length = 256, cstr_allocated = 0, cstr_address = 0x77accd90

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> Made config match yours. > > During connect/auth/attach fbclient send 4 packets to server: > op_connect, op_attach, op_cont_auth: > (gdb) print packet->p_auth_cont > $7 = {p_data = {cstr_length = 256, cstr_allocated = 0, > cstr_address = 0x77accd90 >

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 12:20 PM, Jiří Činčura wrote: data from plugin to server, net op is op_cont_auth. That's the case for WireCrypt != Disabled. Else it just continues to op_attach and the rest of the auth is done there. Made config match yours. During connect/auth/attach fbclient send 4 packets to

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> Supports - but not active in default config. As a plan C, it's OK-ish. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 12:22 PM, Jiří Činčura wrote: And be not able to connect to default FB3? FB3 has Srp256 included starting something like 3.0.4, no? Supports - but not active in default config. Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> And be not able to connect to default FB3? FB3 has Srp256 included starting something like 3.0.4, no? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> data from plugin to server, net op is op_cont_auth. That's the case for WireCrypt != Disabled. Else it just continues to op_attach and the rest of the auth is done there. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 12:13 PM, Jiří Činčura wrote: Or maybe I'll just support Srp256 only and ignore Srp forever. :D And be not able to connect to default FB3? Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Alex Peshkoff via Firebird-devel
On 7/6/21 8:45 AM, Jiří Činčura wrote: This is the order of operations. Compression is disabled. FB3 server has only Srp and Win_Sspi enabled, WireCrypt is Enabled. op_connect + op_attach CNCT_user, ... CNCT_host, ... CNCT_user_verification, CNCT_login, ... CNCT_plugin_name,

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Jiří Činčura
> If the response is op_accept_data, then the following step would be to > enable compression if you have wire compression, and then send the > op_attach packet with the current plugin in isc_dpb_auth_plugin_name > and > the current client data of the plugin in isc_dpb_specific_auth_data. >

Re: [Firebird-devel] Response to op_accept_data

2021-07-06 Thread Mark Rotteveel
On 2021-07-06 07:45, Jiří Činčura wrote: This is the order of operations. Compression is disabled. FB3 server has only Srp and Win_Sspi enabled, WireCrypt is Enabled. op_connect + op_attach CNCT_user, ... CNCT_host, ... CNCT_user_verification, CNCT_login, ... CNCT_plugin_name, Srp256

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
This is the order of operations. Compression is disabled. FB3 server has only Srp and Win_Sspi enabled, WireCrypt is Enabled. op_connect + op_attach CNCT_user, ... CNCT_host, ... CNCT_user_verification, CNCT_login, ... CNCT_plugin_name, Srp256 CNCT_specific_data, ...

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
> What's the setting of WireCrypt on the server? For a mode you check it > should be Enabled or Disabled, not Required default. For Required you > get quite correct error. WireCrypt = Enabled -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Mark Rotteveel
On 05-07-2021 20:22, Jiří Činčura wrote: I did. But Jaybird has different flow compared to NETProvider. Maybe this helps: https://github.com/mrotteveel/r2dbc-firebird/blob/main/src/main/java/org/firebirdsql/r2dbc/client/DatabaseAttachFlow.java#L456 This is the implementation of the various

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
I did. But Jaybird has different flow compared to NETProvider. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Mon, Jul 5, 2021, at 19:57, Mark Rotteveel wrote: > On 2021-07-05 16:55, Jiří Činčura wrote: > > What's the expected response to server from client after client > > receives

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Mark Rotteveel
On 2021-07-05 16:55, Jiří Činčura wrote: What's the expected response to server from client after client receives op_accept_data? Have you looked at the Jaybird code? As far as I'm aware, I have all phases and possible roundtrip combinations implemented there. Alternatively, I could commit

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Alex Peshkoff via Firebird-devel
On 7/5/21 7:17 PM, Jiří Činčura wrote: unavailable database What's the setting of WireCrypt on the server? For a mode you check it should be Enabled or Disabled, not Required default. For Required you get quite correct error. (sorry, sooner of all will next answer only tomorrow)

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
> and sent data from it to server. What's the packet for it? The op_cont_auth does not seem to work for me, I'm getting error response "unavailable database". That's my fault, but as I said, I'm trouble figuring out what's the response for op_accept_data in this case. At this point I still

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Alex Peshkoff via Firebird-devel
On 7/5/21 6:30 PM, Jiří Činčura wrote: next - attach(create) database or attach service You mean op_attach? Like again? Because that was sent in the first place (op_connect + op_attach). I have not known that's non-default client config. Certainly, no need to repeat op_attach. You just

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Alex Peshkoff via Firebird-devel
On 7/5/21 6:28 PM, Jiří Činčura wrote: What's the expected response to server from client after client receives op_accept_data? It's a weird combination I'm doing and something is missing from my implementation here. Client: Srp256, Srp WireCrypt: Disabled CNCT_specific_data sent for

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
> next - attach(create) database or attach service You mean op_attach? Like again? Because that was sent in the first place (op_connect + op_attach). -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
> What's the expected response to server from client after client > receives op_accept_data? It's a weird combination I'm doing and something is missing from my implementation here. Client: Srp256, Srp WireCrypt: Disabled CNCT_specific_data sent for Srp256. Server: Srp When the

Re: [Firebird-devel] Response to op_accept_data

2021-07-05 Thread Alex Peshkoff via Firebird-devel
On 7/5/21 5:55 PM, Jiří Činčura wrote: HI, What's the expected response to server from client after client receives op_accept_data? if needed - initialize channel compression, next - attach(create) database or attach service Firebird-Devel mailing list, web interface at

[Firebird-devel] Response to op_accept_data

2021-07-05 Thread Jiří Činčura
HI, What's the expected response to server from client after client receives op_accept_data? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel