I need help about starting Active Directory and mappview login.
Connection with the factory is properly established : using the function HostByName I manage to control IP address which is correct.
The when I try to authenticate on mappview (using MappUserX Local and Central) :
With local user it’s working good
With AD user I have these errors :
–> Login with mappview visualization write in logger : -1061091324
–> Using function bloc MpUserXLogin(fb) : -1064144849, mpUSERX_ERR_NO_SERVER_CONNECTION
The server is a Windows 2019, TLS 1.2 working in LDAP on port 389 (no certificate needed). The PLC is synchronized as NTP client with the server.
Here are informations about the server and how it’s fill in BnR project :
Which version of mapp Services are you using? According to your screenshot you use 5.x?
In this case, please notice: mapp Service 5.x does not support unsecured LDAP - only secured LDAP”s”.
You either need to switch your AD server to LDAPs - or use the latest mapp Service 6.x version, which supports (almost) all flavours of LDAP communication, including unencrypted communication.
Hi @Emilie_Cibien, yes, the Active Directory should be changed to LDAPS using port 636. And no, you just need to import the root authority certificate of the server (with file extension “.pem”, “.cer” or “.crt”) in AccessAndSecurity > CertificateStore > ThirdPartyCertificates > SoftwareCertificates.
Please see the Use Case in the Help for setting up Active Directory user management in mapp UserX for a step-by-step setup guide: B&R Online Help
Also, keep in mind that for mapp UserX Centralized User Management via Active Directory requires the use of either (1) the User Principal Name (UPN), e.g. user1@domain-name.com, or (2) the Security Account Manager (SAM) name, e.g. DOMAIN/user1. B&R Online Help
Project and AD are changed to LDAPS port 636, connection is established.
Certificate of the server was properly generated by IT department of the factory.
Certificate have the same name in the project and on the server.
We are using SAMAccountName on the server.
Mappview is using mappUserX to authenticate.
MpServer librarie is added in the project.
Timeclock is synchronized with NTP server of the factory.
There is nothing running on the project only AD and the login widget.
I still have error when I try to login on mappview using Active directory account –> BnR logger : Error establishing the connection to MpUserX. -1061091324
If I try to login using local user, it’s working well.
The AD sees incomplete request from the application meaning that communication is properly established but something is missing.
Should I fill somewhere as DN base the path to look for users in the AD ? How can I get additionnal informations about diagnostic ? Can it be the size of the frame ? How can I see what is sent to AD ? Can I configure project using only fixed IP address from the server ? (FYI I tried with DHCP and I same error).
For the B&R PLC to be able to resolve the IP address for that domain name, it would need to have access to a DNS server. Do you have DNS servers configured in the CPU configuration?
Alternatively, it may be simpler to switch your MpUserX Active Directory Host to be using a direct IP address (e.g. 40.50.60.70) instead of a domain name to ensure that you are not having any DNS related issues.