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.



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

m_cmp = iCompanyPtr;

bstrt Cookie = m_cmp->GetContextCookie();

bstrt ConnectionStr =


long Ret = m_cmp->SetSboLoginContext(ConnectionStr);

if (Ret != 0) {

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

return false;


Add a comment
10|10000 characters needed characters exceeded

Related questions

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:


    Add a 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


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.