Bug: Activate changes fails when using favorites and active directory

CMK version: 2.0.0p21
OS version: Centos 7

Error message: can not stat ~/var/check_mk/web/domain\user

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

A problem with activate changes occur, when a user use favorites and the account comes from Active Directory. When the user add a favorit, checkmk create a new directory in ~/var/check_mk/web with the domain name instead of the check user name, e.g.
~/var/check_mk/web/mydomain\ myuser
When you run “Activate changes” you will get a stat error on ditributed sites.

Have you set User-ID attribute to samaccountname?

The User-ID attributes are not set to samaccount, or I could not see it. But it’s not relevant for this problem. CheckMK should write the used data consitenly to the used files. All other custom setting are written as used username, but the favorites does not.

Even if Checkmk should be able to handle this situation it does not. It even explicitly talks about it somewhere in the docs that it’s not supported to have the domain as part of the username in Windows domain format.