Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lion: Connecting to legacy (pre-Lion) AFP services - and Mac OS X (server)

After upgrading to MacOS X Lion, it was discovered that it was not possible to logon to Novell-shares and NAS-boxes (e.g. Qnap).


Here is a recipe that has been tested OK with the following combinations:

* Mac OS X Lion -> Novell shares

* Mac OS X Lion -> Mac OS X 10.5 server

* Mac OS X Lion -> Mac OS X Lion


Please note that the command-lines themselves must not have CR/NL-characters. Copy the commands to a text-editor and remove format-inserted CR/NL-characters.


Another note: Your logon will be less secure with these changes. Later when e.g. Novell and/or your NAS-box support native Lion-logon, then please remove the AppleShareClient-parameter changes again with the first block.


-


Recipe:


The following block can be skipped if you have not previously changed AppleShareClient-parameters:


sudo -s

chmod o+w /Library/Preferences

cd /Library/Preferences/

rm com.apple.AppleShareClient.plist*

! Restart


The following block makes it possible to logon to: (1) Novell-shares (2) Pre Lion Mac-OS-X-volumes - and possibly non-native Lion logon NAS-shares:


sudo -s

chmod o+w /Library/Preferences

defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1

! Restart


You now have to logon a real account (non-guest) on another Mac OS X Lion volume

to catalyst a creation of AppleShareClient-files. (See Apple-support-link) (Is this necessary?)

! instead?:

/bin/sleep 60


chmod o+w /Library/Preferences

defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "Cleartxt Passwrd" "MS2.0" "2-Way Randnum exchange"

defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "DHX2"

defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "DHCAST128"


chmod o-w /Library/Preferences


PS:


Possibly all volume-links may be deletes and recreated to use the new logon-parameters?


-


Sources for command-bricks:


OS X Lion: Connecting to legacy AFP services:

http://support.apple.com/kb/HT4700


AFP changes in OSX Lion:

http://www.novell.com/communities/node/13155/afp-changes-osx-lion


AFP support for DHX2 authentication mechanism on OES:

http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=7008 683&sliceId=1&docTypeID=DT_TID_1_1


"/bin/sleep 60":

Making My NAS Work in Lion:

http://krypted.com/mac-os-x/making-my-nas-work-in-lion/


-


Example:


bash-3.2# chmod o+w /Library/Preferences

bash-3.2# cd /Library/Preferences/

bash-3.2# rm /Library/Preferences/com.apple.AppleShareClient.plist*

bash-3.2# chmod o-w /Library/Preferences

bash-3.2#

! Restart

Last login: Fri Aug 12 14:41:58 on console

$ sudo -s

Password:

bash-3.2# chmod o+w /Library/Preferences

bash-3.2# defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams

2011-08-12 14:42:31.172 defaults[188:707]

The domain/default pair of (com.apple.AppleShareClient, afp_disabled_uams) does not exist

bash-3.2#

! Restart

Last login: Fri Aug 12 14:47:31 on console

$ sudo -s

Password:

bash-3.2# chmod o+w /Library/Preferences

bash-3.2# defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "Cleartxt Passwrd" "MS2.0" "2-Way Randnum exchange"

bash-3.2# defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams(

"Cleartxt Passwrd",

"MS2.0",

"2-Way Randnum exchange"

)

bash-3.2# defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "DHX2"

bash-3.2# defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams

(

DHX2

)

bash-3.2# defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "DHCAST128"

bash-3.2# defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams

(

DHCAST128

)

bash-3.2# chmod o-w /Library/Preferences

bash-3.2#


Also posted here:


Lion: Connecting to legacy (pre-Lion) AFP services - and Mac OS X (server):

http://forum.qnap.com/viewtopic.php?f=30&t=48143

http://forums.macrumors.com/showthread.php?p=13166617

Mac OS X (10.7)

Posted on Aug 12, 2011 1:36 PM

Reply
46 replies

Aug 12, 2011 3:13 PM in response to glenndk

Thanks for your response, but this all looks pretty complicated to me. I am not sure from this which lines I need to use and what I don't need.


For instance,



Please note that the command-lines themselves must not have CR/NL-characters. Copy the commands to a text-editor and remove format-inserted CR/NL-characters.


What are CR/NL characters?




You now have to logon a real account (non-guest) on another Mac OS X Lion volume

to catalyst a creation of AppleShareClient-files. (See Apple-support-link) (Is this necessary?)


How do I log on to another MacOS X Lion volume?


I have not made any changes to my computer yet. Is there one simple set of commands I can use in the terminal? Also, if I make the changes and it doesn't work, how do I remove the changes?

Aug 13, 2011 9:11 PM in response to caw35slr

Nope. No luck. I have also been on the WD boards looking for answers and it seems some folks are using scripts to correct the problem and theirs are working. None of them have worked for me.


How do I get my computer back to it's original configuration before trying these scripts?


I guess I am either going to have to wait until either Apple or WD come up with a fix.

Aug 14, 2011 2:26 AM in response to hammer58

hammer58 wrote:


Thanks for your response, but this all looks pretty complicated to me. I am not sure from this which lines I need to use and what I don't need.


...

What are CR/NL characters?

...


In plain text files carriage-return (CR) and new-line (NL) has:

LF, NL: decimal 10, hexadecimal 0x0A

CR: decimal 13, hexadecimal 0x0D


References:

http://en.wikipedia.org/wiki/Carriage_return

http://en.wikipedia.org/wiki/Line_feed

http://www.asciitable.com/

Especially:

http://en.wikipedia.org/wiki/Line_feed#Representations

Quote: "...

..."

http://en.wikipedia.org/wiki/Newline#Unicode

Quote:"...

The Unicode standard defines a large number of characters that conforming applications should recognize as line terminators:[3]

LF: Line Feed, U+000A
VT: Vertical Tab, U+000B
FF: Form Feed, U+000C
CR: Carriage Return, U+000D
CR+LF: CR (U+000D) followed by LF (U+000A)
NEL: Next Line, U+0085
LS: Line Separator, U+2028
PS: Paragraph Separator, U+2029

..."


If you have Linux, classic Mac or Windows/DOS text files, and you want to convert their LF/CR-flavor to another, then TextWrangler can do it for you; choose new LF/CR-combination via bottom button of the text file window. TextWrangler can be downloaded for free - also via App Store.


TextWrangler:

http://www.barebones.com/products/textwrangler/

Aug 15, 2011 5:52 PM in response to hammer58

I can't say for certain, but there is an update mentioned in your device's release notes that enables Time Machine backups. Make sure your firmware is up to date. If it is, and you are still having problems, email western digital and ask if there is a timeline for the update for your device. Here is your release notes hammer58 http://support.wdc.com/download/notes/MyBookWorldEditionReleaseNotes_v1_02_06.pd f

Lion: Connecting to legacy (pre-Lion) AFP services - and Mac OS X (server)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.