dbTalk Databases Forums  

Problem on OpenAPI

comp.databases.ingres comp.databases.ingres


Discuss Problem on OpenAPI in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zhenchen17
 
Posts: n/a

Default Problem on OpenAPI - 01-05-2009 , 03:00 AM






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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.