Apple Event: May 7th at 7 am PT

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

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.