Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy isn't Opc.Ua.UserIdentity sending the password cleanly to the OPC server?
    primarykey
    data
    text
    <p>I have a problem with the UserIdentity(user, password) constructor. My password is 4 characters long. When the password arrives at the server it is 36 characters long. The first 4 characters are my password - the rest is random garbage.</p> <p>The Opc.Ua.Client.dll &amp; Opc.Ua.Core.dll have version 1.0.238.1.</p> <p>What is causing this and what can I do to send the password correctly?</p> <p><strong>UPDATE</strong></p> <pre><code>ApplicationConfiguration configuration = Helpers.CreateClientConfiguration(); X509Certificate2 clientCertificate = configuration.SecurityConfiguration.ApplicationCertificate.Find(); configuration.CertificateValidator.CertificateValidation += new CertificateValidationEventHandler(CertificateValidator_CertificateValidation); EndpointDescription endpointDescription = Helpers.CreateEndpointDescription(Url); EndpointConfiguration endpointConfiguration = EndpointConfiguration.Create(configuration); endpointConfiguration.OperationTimeout = 300000; endpointConfiguration.UseBinaryEncoding = true; ConfiguredEndpoint endpoint = new ConfiguredEndpoint(null, endpointDescription, endpointConfiguration); BindingFactory bindingFactory = BindingFactory.Create(configuration); if (endpoint.UpdateBeforeConnect) { endpoint.UpdateFromServer(bindingFactory); endpointDescription = endpoint.Description; endpointConfiguration = endpoint.Configuration; } SessionChannel channel = SessionChannel.Create( configuration, endpointDescription, endpointConfiguration, bindingFactory, clientCertificate, null); m_Session = new Session(channel, configuration, endpoint); m_Session.ReturnDiagnostics = DiagnosticsMasks.All; m_Session.KeepAlive += new KeepAliveEventHandler(Session_KeepAlive); m_Session.Notification += new NotificationEventHandler(m_Session_Notification); UserIdentity identity; if (userName == null || userName.Length == 0) { identity = new UserIdentity(); } else { identity = new UserIdentity(userName, password); } m_Session.Open("ATF UA client", identity); log.Debug("Connect ok"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload