Leopard Error -5002 when connecting to AFP shares

When connecting to AFP shares in the new Mac OS X 10.5 (Leopard), you may get a -5002 error when the server only supports clear text passwords. To resolve, either disable clear text passwords on the server side, or change the following plist:

~/Library/Preferences/com.apple.AppleShareClient.plist

You need to change the afp_cleartext_allow value to “Yes” “true” or “1” (depending on the current values you see, either “false” or a “0”).

Here’s an excerpt from my file:


...
<key>afp_cleartext_allow</key>
<true />
<key>afp_cleartext_warn</key>
<integer>0</integer>
<key>afp_default_name</key>
<string></string>
...

8 thoughts on “Leopard Error -5002 when connecting to AFP shares”

  1. i tried this,, but it did not work. when i went into the plist it did not even have afp_cleartext_allow, so i created it, but it did not work

  2. Steven,

    This has been incredibly helpful. I used Night Production’s Pref Setter and it worked beautifully.

    However, now when I am connecting to my site, I get an additional error that prevents me from getting connected.

    I get the error:
    _____
    A volume failed to mount.
    The volume “Home Directory” could not be mounted.
    _____

    Do you have any suggestions?

  3. I haven’t run into that error – if you are using automounts, then it is probably an issue with a computer-wide preference and not the local user preference. I have not figured out a way to enable clear text passwords for the entire OS (just user by user).

    A better solution would be to enable encrypted passwords on your AFP server. We are in the process of updating our AFP server to accept encrypted passwords to get around these issues.

  4. Hey guys I just wanted to let you know that if you don’t have the developer tools to make the change to the aforementioned file, here’s a link to download a script that fixed the cleartext problem for me:

    http://macstuff.beachdogs.org/blog/?p=39

    This is not a plug for that website, I am not affiliated with them or anything, but I had the same problem and found that I couldnt edit the file myself, so this was my best option. hope it helps someone else!

Leave a Comment