Making My NAS Work in Lion

Netatalk seems to always have some issue with OS X. Why I still use little NAS boxes for this that and the other is beyond me. I got stuck dealing with this for a little while and if you’re using Netatalk w/ a DHCAST128 UAM you probably will too. For more on DHCAST see the Netatalk page on UAM support. Kerberos and DHX2 are arguably better, but I’ve found they don’t always work right on some of my NAS boxes. This wasn’t just a quick defaults command as it was in previous instances. It’s not much of a script but the following should fix it if you’re having this issue like I was. /usr/bin/defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1 /bin/sleep 60 /usr/bin/defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array “Cleartxt Passwrd” “MS2.0″ “2-Way Randnum exchange” I had to reboot on one of my machines after this but on the others I didn’t. Hope it helps someone else… And if you want to go back to the way things were before, simply remove com.AppleShareClient.plist from /Library/Preferences (w/ sudo): rm /Library/Preferences/com.apple.AppleShareClient.plist

AFP and Cleartext Passwords

AFP can be persnickety about you doing something as painfully silly as authenticating into a host using a password sent in cleartext (completely unencrypted). But when you’re troubleshooting it can be useful to disable this behavior, if only to test and then re-enable again. To do so:
defaults write com.Apple.AppleShareClient afp_cleartext_allow -bool YES
And to disable the warning:
defaults write com.Apple.AppleShareClient afp_cleartext_warn -bool NO