I'm glad I found this post as I thought it was just me with this issue.
I have exactly the same issue, after trying to login to iCloud account
on Sierra on a machine with AD accounts it asks for system password
which it rejects, on cancelling the dia...