hi,
how can i set the user and pwd when i create a new session or when i connect to a OpcUa?
user and pwd on ocp connection
Moderator: uasdknet
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: user and pwd on ocp connection
Hi,
frist read this:
https://documentation.unified-automation.com/uasdknet/3.1.1/html/L2ClientTutConsoleClient.html#L2ClientTutConsoleClient_Connection_Security
should be clear thereafter.
frist read this:
https://documentation.unified-automation.com/uasdknet/3.1.1/html/L2ClientTutConsoleClient.html#L2ClientTutConsoleClient_Connection_Security
should be clear thereafter.
Best regards
Unified Automation Support Team
Unified Automation Support Team
-
- Jr. Member
- Posts: 2
- Joined: 04 Apr 2023, 11:59
Re: user and pwd on ocp connection
Hi,
I implemented the user login like this:
https://documentation.unified-automation.com/uasdknet/3.1.0/html/L3ServerTuDemoServerUserAuth.html
However when i try to connect to the Server with UAExpert the connection is declined with a 'BadConfigutationError'
during ActivateSession. For this reason the Event SessionManager_ImpersonateUser is never called, it works fine with the anonymous login.
Can you provide some Information which config is needed to allow user and password connection?
I implemented the user login like this:
https://documentation.unified-automation.com/uasdknet/3.1.0/html/L3ServerTuDemoServerUserAuth.html
However when i try to connect to the Server with UAExpert the connection is declined with a 'BadConfigutationError'
during ActivateSession. For this reason the Event SessionManager_ImpersonateUser is never called, it works fine with the anonymous login.
Can you provide some Information which config is needed to allow user and password connection?
-
- Jr. Member
- Posts: 2
- Joined: 04 Apr 2023, 11:59
Re: user and pwd on ocp connection
Got it:
https://documentation.unified-automation.com/uasdknet/2.1.0/html/L2BaseLibConfigSchema.html
https://documentation.unified-automation.com/uasdknet/2.1.0/html/L2BaseLibConfigSchema.html