I’m trying figure out how to get the AD Machine Password on a Lion client.
In 10.6 there where lots of posts on how to do it
“defaults read /Library/Preferences/DirectoryService/ActiveDirectory “AD Computer Password” | xxd -r -p”
Has anyone figured out how to do this with 10.7 i can’t seem to find the solution.
Been checking the preference files for AD, profiles and so on any hints or tips would be greatly appreciated. 🙄
Hi Maweee, the easiest way I have found is just
sudo dsconfigad -show | grep ‘Password change interval’
the value is now stored in
/Library/Preferences/OpenDirectory/Configurations/ActiveDirectory/yourdomain.plist
defaults can read the plist but in this format
sudo defaults read /Library/Preferences/OpenDirectory/Configurations/ActiveDirectory/yourdomain ‘module options’ |grep ‘trust password change in days’
Comments are closed