Skip to Content

6.50.52 Single Signon Experience?

Hello Developers,

I am new to this forum and would like to ask a very special question concerning the single signon possibility with 6.50.

We developed an addon in MS VCPP 6.0 using a login window to connect to the DI. Whenever we want to use the single signon in 6.50 we do not get a valid cookie, that is we only see '??????....' in the debug information. We also used the provided example programs in Visual Basic, but did not cope with a valid cookie. Where is the error? Thank you for your help in advance.

Peter

-


SAPbobsCOM::ICompanyPtr iCompanyPtr("SAPbobsCOM.Company");

m_cmp = iCompanyPtr;

bstrt Cookie = m_cmp->GetContextCookie();

bstrt ConnectionStr =

m_con->Company->GetConnectionContext(Cookie);

long Ret = m_cmp->SetSboLoginContext(ConnectionStr);

if (Ret != 0) {

MessageBox(NULL,"Connection to DI impossible", "Error", MB_OK);

return false;

}

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2004 at 02:25 PM

    Hi Peter

    Welcome to this forum.

    The context inside the cookie is encrypted. This is the reason that you see only question marks (?????).

    If you want to change one of the connection parameters you can do it before doing the Connect method.

    For example:

    If I'm interested to update the username and the password I will add the following lines:

    oCompany.UserName = "manager"

    oCompany.Password = "manager"

    Just before this line:

    oCompany.Connect

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Miki,

      thank you for your information, now we assume that the main problem is at the point of SetSboLoginContext because there the security of the sql connection towards the SQL Server is being validated.

      When we use the sa without any password the single signon works, but if we use trusted connection the single signon produces trash.

      Is there any documentation about the MS SQL Server 2000 security options to be taken into account when using single signon?

      Thank you

      Peter