-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support user/password identity on unsecure connection #132
Comments
As of now, the unsecured connection only supports the anonymous identity. If UaExpert (using the same SDK) support a user/password identity on an unsecured connection, this sounds like a useful and reasonable extension. |
More details (from Markus): The Siemens PLC only offers the unsecured endpoint. Anonymous access is disabled; instead, a user/password has been configured. Using "none" on the IOC is correct. If the server certificate is downloaded and trusted, it is used to encrypt the password (UaExpert does it that way). Screenshots
Adding opcua/devOpcuaSup/UaSdk/SessionUaSdk.cpp Line 722 in 9dbb2a7
|
Abel Cano (UGR) is reporting the same issue: I am trying to connect with the PLC using an unsecured connection and an username/password (via identity file with "user" and "pass"), but I can't find the way to do it. Because the autoconnect option is enabled by default, the IOC tries to connect with the PLC continuosly, but with no success. |
As Abel was not able to test the fix suggested by Markus, I have set up an S7 1500 for verification. I am on it. |
- Allow the use of user/pass identity (also token - untested) on unencrypted connections. If the server certificated is trusted, it will be used to encrypt the password - this setup is indeed secure. - fixes epics-modules#132
Reported by Markus Meyer (HZDR):
I recently started to test around with the opcua epics module in https://github.com/epics-modules/opcua.
I have a Siemens S7-1500 where only the "None" security endpoint is enabled but a user login is configured while the anonymous user is disabled. I successfully tested the connection with UaExpert.
I use tag v0.9.3 and uasdk version 1.7.3 on windows-64 (MSVC 2019 64 bit) for this test.
I tried the following to connect the endpoint:
The text was updated successfully, but these errors were encountered: