edsonsoares

Connecting to a Server with SSPI - Windows Security - Help

Discussion created by edsonsoares on Apr 22, 2013
Latest reply on Apr 24, 2013 by Gregor

Hi,

 

I need to connect to a PI Server using PISDK with SSPI (Windows Secutiry).

 

I don't know how to do it and I can't find much reference about it in VCampus or online with Google.

 

I have read about IPISDKOptions and SetAuthenticationOptions, but I couldn't get it.

 

I'm using the connection like this:

 

 

 
PIServer server = piSDK.Servers[myServer];
PIPoint piPoint = server.PIPoints[TagName];

 It connects fine, but for some secutirty problems I need to connect using SSPI

 

I tryed something like this:

 

 

 
NamedValues nv = new NamedValues();

nv.Add("SSPI", null);
PISDK.PISDK sdk = new PISDK.PISDK();

PISDK.Server server = sdk.Servers[myServer];

IPISDKOptions opt = (PISDK.IPISDKOptions)sdk;
opt.SetAuthenticationOptions(nv, false);

 but, I do not know how to use this opt object.

 

Can anyone please  help me with that?

 

Thanks!

 

 

 

Edson Soares

Outcomes