Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-20 Thread Jiří Činčura
> Unfortunately not. Certainly that can be fixed for fb4 and later but 

Given you can count provider writers on one hand, I don't think it's
necessary. Either one does it correctly or keep trying (a lot of what I
do :)).

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-20 Thread Alex Peshkoff
On 20.09.2016 14:47, Jiří Činčura wrote:
>> Pay attention - _removes_. Does not matter was there something useful in
>> CNCT or not.
> OK, I missed that. I though it's like a merge of values.

Unfortunately not. Certainly that can be fixed for fb4 and later but 
clients should better work with older versions too.


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-20 Thread Jiří Činčura
> Pay attention - _removes_. Does not matter was there something useful in 
> CNCT or not.

OK, I missed that. I though it's like a merge of values.

Thanks.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-20 Thread Alex Peshkoff
On 19.09.2016 21:05, Jiří Činčura wrote:
>> things. But for os user name - no, not ok.
> Can you elaborate?
>

I've already did it before ;)

> Existing server code removes them from DPB, takes values loaded 
> earlier from connect packet and puts into DPB.

Pay attention - _removes_. Does not matter was there something useful in 
CNCT or not.


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-19 Thread Jiří Činčura
> things. But for os user name - no, not ok.

Can you elaborate?

--
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-19 Thread Alex Peshkoff
On 19.09.2016 20:14, Jiří Činčura wrote:
>> Historical reasons.
>> This values were passed in CNCT since pre-firebird times therefore
>> current solution was OK for old clients.
> But there's inherently nothing wrong with using DPB, right? Because i.e.
> isc_dpb_process_id and isc_dpb_client_version are only in DPB to name a
> few (I don't know any matching CNCT, to be precise), so I would rather
> keep it around one place in code.
>

DPB is OK for process id, version of the client and a lot of other 
things. But for os user name - no, not ok.


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-19 Thread Jiří Činčura
> Historical reasons.
> This values were passed in CNCT since pre-firebird times therefore 
> current solution was OK for old clients.

But there's inherently nothing wrong with using DPB, right? Because i.e.
isc_dpb_process_id and isc_dpb_client_version are only in DPB to name a
few (I don't know any matching CNCT, to be precise), so I would rather
keep it around one place in code.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-17 Thread Alex Peshkoff
On 16.09.2016 23:22, Jiří Činčura wrote:
> I was thinking quite the opposite. Dropping the CNCT values. In DPB
> there's more (like process ID etc.) so I thought I would logically
> group it there.

Historical reasons.
This values were passed in CNCT since pre-firebird times therefore 
current solution was OK for old clients.


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Jiří Činčura
I was thinking quite the opposite. Dropping the CNCT values. In DPB
there's more (like process ID etc.) so I thought I would logically
group it there.

--
Mgr. Jiří Činčura
Independent IT Specialist
--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Alex Peshkoff
On 16.09.2016 22:48, Jiří Činčura wrote:
> Thanks. Not sure why I'm sending it in CNCT and DPB as too. Maybe some 
> history code.
>
> Time to clean it up! :) And save few bytes.
>

Better drop them from DPB. Existing server code removes them from DPB, 
takes values loaded earlier from connect packet and puts into DPB.



--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Jiří Činčura
Thanks. Not sure why I'm sending it in CNCT and DPB as too. Maybe some history 
code. 

Time to clean it up! :) And save few bytes. 

-- 
Mgr. Jiří Činčura
Independent IT Specialist

> On 16 Sep 2016, at 18:12, Dmitry Yemanov  wrote:
> 
> 16.09.2016 19:00, Jiří Činčura wrote:
>> 
>> is the CNCT_user and CNCT_host visible for normal developer somewhere? I
>> suppose CNCT_user is overriden by isc_dpb_user_name, right? Similar with
>> CNCT_host and isc_dpb_host_name.
> 
> CNCT_host = isc_dpb_host_name = MON$REMOTE_HOST
> CNCT_user = isc_dpb_os_user = MON$REMOTE_OS_USER
> 
> 
> Dmitry
> 
> 
> --
> Firebird-Devel mailing list, web interface at 
> https://lists.sourceforge.net/lists/listinfo/firebird-devel


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Dmitry Yemanov
16.09.2016 19:00, Jiří Činčura wrote:
>
> is the CNCT_user and CNCT_host visible for normal developer somewhere? I
> suppose CNCT_user is overriden by isc_dpb_user_name, right? Similar with
> CNCT_host and isc_dpb_host_name.

CNCT_host = isc_dpb_host_name = MON$REMOTE_HOST
CNCT_user = isc_dpb_os_user = MON$REMOTE_OS_USER


Dmitry


--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Jiří Činčura
Ahh, no CNCT_login is overridden isc_dpb_user_name. So what's the
CNCT_user for?

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] CNCT_user and CNCT_host

2016-09-16 Thread Jiří Činčura
Hi,

is the CNCT_user and CNCT_host visible for normal developer somewhere? I
suppose CNCT_user is overriden by isc_dpb_user_name, right? Similar with
CNCT_host and isc_dpb_host_name.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel