Hi gordy and everyone,
I use OpenAPI for a while but have a few problems:
1. What is the difference between the two methods to set connection
username and password:
(A) set co_username and co_password member in IIAPI_CONNPARM structure
when passed to IIapi_connect function.
(B) use IIapi_setConnectParam function to set the
IIAPI_CP_EFFECTIVE_USER and IIAPI_CP_DBMS_PASSWORD parameters to the
session.
I wonder (1) if both the two steps are set, and the usernames r
totally different, which one is the true one connection to the
database?
(2) if I use method (B), is it true that application
constructed by OpenAPI in same computer will share the same config
(Username and password)?
2. I tried to use method (A) to send username and password to the
server to ask for a connection. However, I traced that the Username
and password are correct when the function IIapi_connect are called
(in IIAPI_CONNPARM) but the password are blank when passed to sequencer
(scs_sequencer) in src\back\scf\scs\scsqncr.c in the variable of scb-
Quote:
scb_sscb.sscb_ics.ics_rupass. Meanwhile, the username in scb-
scb_sscb.sscb_ics.ics_rusername is correct. |
So I wonder (1) is this normal for the empty password or may be bugs
in GCA communication or Is designed like this?
(2) If i want to trace how these username and
password are packaged and sent and interpretered at both client and
server, which part of source codes should I read?
3. (1)Is Ingres .Net provider offer the same functions as (B) to set
the connect parameters of usernames and password?
(2) what is the difference between the two parameters in \src\common
\dotnet2_win\provider\advan\advanconnect.cs : MSG_CP_PASSWORD and
MSG_CP_DBPASSWORD
Thanks ahead
Regards
Chenzhen
zhenchen17 (AT) gmail (DOT) com