When LocalPasswordSyncOnMatchOnly is set to true, local password does not change
When the preference LocalPasswordSyncOnMatchOnly is set to true/1, NoMAD does not change the local password with an error "User names do not match, not syncing password."
The username signed in to NoMAD, and signed in to the computer are the same.
On investigation, NoMADUser.swift does not strip out "@realm" from the username that is passed to it.
It appears the proper solution would be to change:
if NSUserName() == username {
to:
if NSUserName() == noMADUser.userName {