The passwordhistory attribute ntpwdhistory/sambaPasswordHistory is not synchronized between openLDAP and Samba4. This means that a password, set via UDM (e.g. by an Administrator) and expired, can be set to the exact same password in the UMC login dialog, even if the pwhistory setting is enabled in Samba.