sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 218 forks source link

MacOS Ventura: password hash not working #488

Open feld opened 1 year ago

feld commented 1 year ago

:ghost: Brief Description

Password hash appears to be set by the recipe, but does not work.

:pancakes: Cookbook version

8.1.10

:woman_cook: Chef-Infra Version

Chef Infra Client: 18.2.7

:tophat: Platform details

ProductName: macOS ProductVersion: 13.4 BuildVersion: 22F66

Steps To Reproduce

  1. Get a hash: openssl passwd -1 "abc123" # ($1$UaRWeCmf$9lSnUAiUC5mKr3cWQsCng/)
  2. Run the recipe
  3. Try to change your password, which will request the password you just set:

$ passwd Changing password for feld. Old Password: New Password: Retype New Password: passwd: authentication token failurepasswd

:police_car: Expected behavior

The password you set works on MacOS

I've tried both $1$ (md5crypt) and $6$ (sha-512) variants of the password hash. Neither work. Unclear what is actually required to get a password successfully set on MacOS.