Restore keychain access after error changing login password
Hi,
I decided to change my user password for my MacBook pro (macOS Sierra) using the standard user interface from System Preferences. At the same time, I ticked the box headed 'Allow user to reset password sing Apple ID'.
When I changed the password, the first thing that happened was that the iCloud application opened, with a login dialog, which was immediately obscured by another dialog which was disabled. I'm not sure what that dialog was - possibly my keychain login, or something requiring a password to make administrative changes, but I couldn't type into it or move it, so had to close it. When I then typed my Apple password into the iCloud dialog, it just hung so that eventually I was forced to do a Force Quit to close that application.
To cut a long story short, when I then restarted my macbook, it neither accepted my old, nor my new password (although I did notice that the password hint had changed). Fortunately, I was able to reset my password using my Apple ID, but having done so, I cannot access my old keychain, which is a complete pain.
Has anyone got any idea what as gone wrong? Why something as fundamental as changing a password has failed and what, if anything, I can do to restore access to my old keychain? I've tried my old and new passwords, as well as my iCloud password, but none of them works.
Many thanks.
MacBook Pro (Retina, 13-inch, Late 2013), macOS Sierra (10.12.6)