2

This has happened to me twice in the past week. I put my MacBook Pro to sleep while my user account is logged in. When I return, I enter the correct password and it shakes, as if the password were wrong. I try several times, and get nowhere. So I force reboot, and then I am able to login again. Here are some relevant lines from the log right after the reboot. The opendirectory lines are repeated hundreds of times.

loginwindow: -[LWBuiltInScreenLockAuthLion verifyPassword] | ERROR | Verify password called with PAM auth set to YES, but pam handle == nil
opendirectoryd: Client: <private>, UID: 0, EUID: 501, GID: 20, EGID: 20
opendirectoryd: queuing request to connection - '<private>'
loginwindow: (libpam.2.dylib) in od_record_create(): failed: 13
loginwindow: (libpam.2.dylib) in od_record_create_cstring(): failed: 13
loginwindow: (libpam.2.dylib) in pam_sm_authenticate(): OpenDirectory - Unable to get user record.

This is running Sierra 10.12.6. Filevault is disabled. I also notice after the reboot, Spotlight is hogging CPU for several minutes, like it's rebuilding an index, but that might be a red herring, just caused by the reboot.

  • 1
    Check your keyboard mapping and functionning. If you can switch user, do it and check your keyboard within the user form. – dan Apr 30 '18 at 8:53
  • 1
    Check your FS (Disk Utility) from an USB bootable key (with Sierra, not High Sierra). – dan Apr 30 '18 at 9:00
  • 1
    seems the PAM authentication was not handling the login at that time,and that was most possibly the reason. – FrontENG Apr 30 '18 at 9:15
  • 1
    @danielAzuelos Keyboard mapping is correct, since I can type the username – Elliott Apr 30 '18 at 14:57
  • 1
    @FrontENG I'm not sure what PAM is, is it normally used for macOS logins? I have never joined a domain or other active directory with this machine, just regular local accounts – Elliott Apr 30 '18 at 14:58
1

Try to reset your login password at first:

macOS Sierra: Reset a login password.

If the above didn't help, try to reset Nonvolatile Random-Access Memory and System Management Controller:

How to reset NVRAM or PRAM on your Mac.

How to reset the SMC on your Mac.

P.S. I experienced the same issue on Mac Mini with El Capital. Resetting PRAM and SMC helped me to fix it.

  • 2
    Any documentation as to why NVRAM or SMC would cause this specific issue? – Elliott Apr 30 '18 at 6:40
  • 1
    I haven't found any official documentation on this problem. – user243793 Apr 30 '18 at 6:43
  • That "macOS Sierra" link no longer works – DrStrangepork Jul 15 at 14:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .