Hi,
We are accessing SAP from VB code using BAPI api's. The code works fine. But we have a requirement to enable single sign on with SNC. We want the program to use NTLM. Can someone give a sample code? We tried with few options but it is not working (it continues to pop up the user login/pass dialog box instead of taking the nt domain user and pass):
*******************Sample***********************
oBAPI.Connection.Client = Client
oBAPI.Connection.System = System
oBAPI.Connection.SystemNumber = SystemNumber
oBAPI.Connection.ApplicationServer = ApplicationServer
'oBAPI.Connection.User = User
'oBAPI.Connection.Password = Password
oBAPI.Connection.SNC = true
oBAPI.Connection.SNCName = "Name"
oBAPI.Connection.Autologon = Autologon
oBAPI.Connection.Language = Language
oBAPI.Connection.TraceLevel = TraceLevel
oBAPI.Connection.LowSpeedConnection = True
oBAPI.Connection.UseSAPRFCIni = False
oBAPI.Connection.Logon(0, False)
******************************************************
I have set "SNC_LIB" to "sncgss32.dll". Do I need to set it to "gssntlm.dll" for single sign on. I searched for this dll but could not locate. I am on Windows XP and SAP server is on Unix.
I would greatly appreciate any help in making this work.
Thanks in advance,
Nilanjan