Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

UA Authentication - by: m.baumgartner

$
0
0
Hello,
We use QuickOPC in COM with Delphi.
I try to connect to OPC server UA with authentication.
With this code it works great :
EasyUAClientConfiguration := TEasyUAClientConfiguration.Create(nil);
  //EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity.UserNameTokenInfo.UserName := 'admin';
  //EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity.UserNameTokenInfo.Password := 'moxa';  UserIdentity := TUserIdentity.Create(nil);
  UserIdentity.UserNameTokenInfo.UserName := 'admin';
  Useridentity.UserNameTokenInfo.Password := 'moxa';
  EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity := Useridentity.DefaultInterface;
  Useridentity.Destroy;  EasyUAClientConfiguration.Destroy;
But know i want to pu multiple Username ant password for multiple OPC Server UA.
How we must do that in Delphi? I have found UserIdentity.CreateUserNameIdentity in your documentation but this method is not available in Delphi wrapper.

Thanks for your help.

Viewing all articles
Browse latest Browse all 1794

Trending Articles