awjohnso / JAMF-NoMADLogin-AD

Scripts to help manage NoMADLogin-AD from Jamf.
MIT License
0 stars 0 forks source link

Keychain cannot be found #2

Closed chrism9876 closed 2 years ago

chrism9876 commented 2 years ago

When logging in to a mac that hasnt been logged in to before by that user. I get an error. A keychain cannot be found to store USERNAME@DOMAIN.

I am using the following prefrences

Create keychain = true Add nomad to keychain = true Reset keychain if password doesnt match = true

If i remove add nomad to keychain i can login but have no keychain

If i then run Chmod 777 /Users/USERNAME/Library/Keychains

And enable add nomad to keychain

Then logout and backin. A keychain is created.

The premissions on the keychain folder before was USERNAME:staff rwx--x--x or 711

Tested on 12.2 1 and 11.6.4

If i manually create the folder it works Sudo mkdir /Users/USERNAME sudo chown USERNAME /Users/USERNAME