Page 1 of 1

user and pwd on ocp connection

Posted: 25 Mar 2022, 08:25
by manu0087
hi,
how can i set the user and pwd when i create a new session or when i connect to a OpcUa?

Re: user and pwd on ocp connection

Posted: 25 Mar 2022, 09:49
by Support Team
Hi,

frist read this:
https://documentation.unified-automation.com/uasdknet/3.1.1/html/L2ClientTutConsoleClient.html#L2ClientTutConsoleClient_Connection_Security

should be clear thereafter.

Re: user and pwd on ocp connection

Posted: 04 Apr 2023, 12:18
by FuZi
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?

Re: user and pwd on ocp connection

Posted: 04 Apr 2023, 12:49
by FuZi
Got it:
https://documentation.unified-automation.com/uasdknet/2.1.0/html/L2BaseLibConfigSchema.html