Mappview: Implementing Active Directory- Success, but only works when connected to the Domain Controller

Hello BnR gurus!,

I have been doing some testing with my BnR Panel PC 900 and a domain controller to implement Active Directory user management on the Panel PC’s users.

I have everything connected and the users I have implemented on the DC side work. My goal is to use local users and users authenticated by the DC, so I have the setting on MpUserX set to “Local and central”. What I find is that if the DC is powered on and connected, all users can login and work fine. If the DC is powered off, the DC users AND the local users are no longer able to login and use the panel.

A Summary of detals:

  • mapp Services 5.15.0, Panel PC 900, AR Embedded, mapp View
  • MpUserX Type set to “Local and central”, Active Directory over LDAPS on 636
  • Domain login works correctly, roles map correctly from AD groups
  • With the DC unreachable, no login succeeds: not pre-existing local users, not users created at runtime through the HMI
  • Persists across a warm restart, so it isn’t session or connection state
  • Setting Type back to “Local” restores local logins immediately

Please let me know if there is further information I can provide so we can get to a solution.

Hi Alexander

Please try to use the latest mappServices version. F.e. in version 5.20 there was a timeout parameter introduced as well as a prioritization.

revision info mappServices 5.20

Good luck!

Hello Jan VDW,

Thank you for pointing me in the right direction. I upgraded to mappServices 5.20.0 and mappview 5.20.0 →

Now for my mpsuerx settings I see a Timeout field, which has Automatic or appears the ability to enter seconds →

In the help it says that the if Automatic is used as the timeout, the timeout period is controlled by mapp UserX. How would I configure that?

Regarding the functionality, my observation is that the local users are able to login and user the panel as well as the users

that I created on the DC whether the DC is on or not. Does this mean that the credentials are cached on the panel locally?

If there is caching, is there documentation on how long the credentials are retained? Is this configurable?

Thank you for the help so far.

Hi Alexander,
I have no idea about the caching. I’d expect this not to work this way.This you should check with local support, as well as the automatic timeout setting :).
I’d also recommend you to upgrade to the latest available version for mappServices which is 5.24.6.

mappServices 5.24.6

hi @Alexander_Yousefian , I marked that this discussion was moved to support. Please update us with final findings you get from support,

Hello Jaroslav and BnR forum folks,

The last mods I made to the mpuserx are that I changed the Prioritize central users to FALSE and change the Timeout to 10s

It is behaving as expected. When the DC is on both local and central users work. If the DC is off then only the local users work.

I have observed a little weird behavior in that it seems when the DC goes from on to off, it takes the Panel PC a minute or so to figure out this happens. During this time I have also observed that neither local or central users is able to login until the Panel PC “finds out” that the DC is off and then local users work. I’m sure with some diagnostics and visual cues this can be cleaned up.

All in all its working, thanks to Jan VDW for pointing me in the right direction.