Certified Ethical Hacker for Hire and Certified Cyber Security Professional

Close Icon
Contact Info     Call today! 720.984.2973
Email: [email protected]

OS X LION AFP NAS connection error FIX

Ok, Apple is back at it with making standards that everyone must catch up to in order to do things we like doing. Like, connecting to a NAS. After a bit of frustration at my inability to connect to my office NAS I went looking for a solution and found one that works. Originally found on the Apple developer forums but summorized very nicely over on AlexanderWild. When trying to connect to office NAS I was presented with this:

OS X LION AFP connection error FIX

The problem: It appears Apple disables support for the “DHCAST128″ in OS X 10.7 LION , which is a common NAS setup.
The Solution:

To turn on “DHCAST128″ support please do the following:

1) Launch /Applications/Utilities/Terminal and do:
sudo chmod o+w /Library/Preferences
2) Then Do:
defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
3) Restart your computer.
4) From Finder, select an AFP server, or use “Connect To…”. This will cause the AFP Client to create the full preferences file
5) Launch Terminal again and do:
sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array “Cleartxt Passwrd” “MS2.0″ “2-Way Randnum exchange”
6) Then Do:
sudo chmod o-w /Library/Preferences
7) Restart your computer again.

Note: To add a “DHCAST128″ to the disable list, use
sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array-add “DHCAST128″



SherwinF commented that the commands are incorrect. See comments.



Post Tagged with , , , , ,

5 Responses so far.

  1. Jim says:

    This worked for me as well, but I still cannot select my Time Machine folder in Time Machine.. it doesn’t show up when trying to set up time machine in Lion. Are you able to back up with your original backup folder?

  2. SherwinF says:

    This command you got from Alexander Wilde is actually incorrect. It modifies your plist file incorrectly and actually leaves you with invalid entries. Open the file in plist editor to see what I mean.

    The correct command is
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array Cleartxt\ Passwrd MS2.0 2-Way\ Randnum\ exchange

    No quotes and escaped spaces.

    Same goes for the readd command, it should be like this without quotes:
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array-add DHCAST128

  3. boxsters says:

    Thanks you so much SherwinF for your correction … I was trying for at least 1 week with incorrect command !

  4. Frank says:

    Hi Guys, i am able to connect to shares but nog able to startup timemachine and make a back-up.
    Both commands will not let me do this.

You must be logged in to post a comment.