Skip to Content
author's profile photo Former Member
Former Member

wdtfuncs.ocx Connection object question

I have a legacy application that is using wdtfuncs.ocx control to access SAP. We like to implement SNC via SNCGSS.dll provider instead of username and password.

During the developement phase, we find unlike SAPGUI which will automatically find the GSS library from OS search path (we have the GSS library in windows\system32 folder. The wdtfuncs.ocx does not find the SNC library. If we put SNC_Lib parameter in System environment, then the SNC works.

Is this true, any property setting that this OCX provided we have missed. Can we have the same behaviour that SAPGUI provided or can this OCX automatically look for the search path to find the GSS library without

This is the sample code:

Dim c As Object

Dim objGoRFCServer

Set objGoRFCServer = CreateObject("SAP.Functions")

Set c = objGoRFCServer.Connection

c.client = 123

c.GroupName = "Finance"

c.language = "en"

c.MessageServer = "sapdev"

c.SNCName = "p:ABC\abc"

c.SNC = True

c.SNCQuality = "9"

c.System = "DEV1"

c.User = "DENNISW"

If c.Logon(0, True) = True Then

MsgBox "connected"

Else

MsgBox "connection failed"

End If

Thanks,

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 23, 2004 at 08:49 AM

    Hi Dennis,

    I'm a little bit confused, because from all I know any SAP client - including SAPGUI - always needs the SNC_LIB variable beeing correctly set for SNC SSO.

    You can also specify "SNC_LIB" in the connection string.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dennis,

      as I sayd I was surprised that is is possible to do SSO without setting the SNC_LIB variable. E.g. here inside SAP all PCs have the variable set:

      SNC_LIB=C:\Program Files\SECUDE\SECUDE for R3\secude.dll

      It seems that SAPGUI has a default for it pointing to a DLL with exactly the name "SNCGSS32.DLL".

      Anyway, for exactly your task there is an OSS note (595341) that contains an MSI that installs the newest version of gsskrb5.dll to System32 and sets the environment variable SNC_LIB. The MSI can be also easily assined using a Domain Group Policy.

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.