Professional OPC
Development Tools

logos

UA Authentication

More
02 Nov 2017 11:19 #5630 by support
Replied by support on topic UA Authentication
This is an interesting idea (setting multiple identities globally). I will make a note for a possible product enhancement. Currently it is not supported.

But, having something like this would probably require a trial-and-error approach: The component will have to simply try each of the identities provided, sequentially, to figure out which one works. And it will receive an error when the identity is not the right one. This would slow down the connections. For this reason, aside from some special cases, I do not see it as a truly "good" thing to have.

Best regards

Please Log in or Create an account to join the conversation.

More
02 Nov 2017 09:52 #5628 by m.baumgartner
Replied by m.baumgartner on topic UA Authentication
Hello,
Thanks for your reply.
Yes this will work with editing the UAENdPointDescriptor.
I was hoping a possibility to set multiple useridentity globally to simplify the coding.

Thanks anyway for this solution that will perfectly work.

Best Regards.

Please Log in or Create an account to join the conversation.

More
01 Nov 2017 13:25 #5626 by support
Replied by support on topic UA Authentication
The user identity can either be set globally (the way you are doing it), or it can be specified inside the UAEndpointDescriptor: www.opclabs.com/files/onlinedocs/QuickOpc/Latest/User%27s%20...ntDescriptor~UserIdentity.html .

So, you just need to create the UAEndpointDescriptor, set its "usual" properties ( opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User's...ointDescriptor_properties.html ) like the UrlString, and then also set the UserIdentity. This can be done differently for each server then.

Best regards

Please Log in or Create an account to join the conversation.

More
31 Oct 2017 09:47 - 31 Oct 2017 09:47 #5621 by m.baumgartner
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.
Last edit: 31 Oct 2017 09:47 by m.baumgartner.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.172 seconds

      

 Recommend this on Google