Unable to log in with MpUserX when OPC UA Anonymous authentication is disabled

Hello,

I came to this post since I have a very similar hardware setup, use mappView for my visu and MpUserX for the user stuff. The only difference is that my PLC is the PPC50 where the mappView server and client is running, and I’m not using TLS/SSL.

Logging in via event binding worked fine until I disabled the “Anonymous” authentication in OPC UA settings:

Now I’m getting the same error “Error establishing the connection to MpUserX” in the logger when I want to login via my visu.

I don’t think it has to do something with the TLS/SSL configuration, since I don’t use TLS in my project. But I think that the C50 mappView client is accessing the mappView server via OPC UA as user “Anonymous” (which I have disabled previously) and thus can’t properly login. This can be seen in the logger entries as well:

Any ideas how to solve this issue? How can I enable the C50 internal mappView client stil to login? Otherwise the option to disable anonymous OPC authentication wouldn’t make sense..

Thanks.

Hi @eugen.c

I’ve moved your post to a new topic to increase visibility. My first thought would be to try adding a OpcUaServer.uaserver file to the mappView folder in the Configuration View (via the toolbox). This file allows you to configure OPC UA servers that the mappView client can connect to, including the localhost (127.0.0.1). Here, make sure that these settings match your OPC UA server settings.

Hi …
I guess we are talking about mapp View 5.x here?
In mapp View 5 the connection between mapp View and mapp Services (-> MpUserX) is done via an anonymous OPC-UA connection. That said, if you disable the anonymous login on the OPC-UA side, mapp View and mapp Services / MpUserX can no longer communicate with each other, consequently a login via MpUserX will fail.

If you want to use MpUserX you need to have the anonymous login enabled on the OPC-UA side, there is no workaround - well, you could switch to mapp View / Services 6.x, in this version you can disable the anonymous login.

3 Likes

Hi,
thank you for your quick reply. Yes we’re talking about mappView/mappServices 5.x.

@hobi So the proposed idea from @marcusbnr will not work due to the technical limitation?

No, the idea from Marcus will not help. The proposed configuration file “only” ensures that you’re talking to the correct OPC-UA server, with the correct (security) settings … but this is actually not your problem here. Your problem is that mapp View cannot connect, due to the closed anonymous token access.

1 Like

Alright, thanks for clarification.

We can close this topic then.

1 Like