Mac on a Windows domain / Magic Triangle not logging on says Keychain needs to be updated

If you get a error when logging onto Mac that the keychain needs to be updated, and then lots of popups when you’ve logged on asking you to put a password in, and whichever password you put in, user or administrator, none will remove the vast amount of pop ups, you need to do the following. […]