Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 12, 2011, 02:52 PM   #1
Glenndk
macrumors newbie
 
Join Date: Aug 2011
Lion: Connecting to legacy 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
* Mac OS X Lion -> Qnap (NAS via AFP)

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.
In the terminal.app the following commands are applied:

Code:
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:

Code:
sudo -s
chmod o+w /Library/Preferences
defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
! Restart
You now (might) 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?)

Code:
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/no...anges-osx-lion

AFP support for DHX2 authentication mechanism on OES:
http://www.novell.com/support/search...eID=DT_TID_1_1

-

Example:

Code:
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 submitted here:

Lion: Connecting to legacy AFP services - and Mac OS X (server)
http://forum.qnap.com/viewtopic.php?f=30&t=48143
https://discussions.apple.com/thread/3258472

Last edited by Glenndk; Aug 14, 2011 at 06:47 AM.
Glenndk is offline   0 Reply With Quote
Old Jan 12, 2012, 03:27 PM   #2
CustomShoebox
macrumors newbie
 
Join Date: Jan 2012
Lion: Connecting to legacy AFP servers

I work at a University where we support primarily Windows machines. We have some Mac machines, primarily in the Art and Music departments. We run Snow Leopard and some Leopard. We just purchased a new iMac and a replacement Mac Book Pro - both with Lion. We would prefer to stay with Snow Leopard for the rest of this year - but not sure that is an option. Also we use Novell for our network; and I have read and studied this post - on this forum and via Google.

I am attempting to access a server using the "Go" command in Finder. If i use a Mac Mini with 10.6.8, I have no problems. But Lion is not so cooperative.

So far, I cannot get this to work. I am using root and follow the steps but each time I still get the same error. When I tried to run this command:
rm com.apple.AppleShareClient.plist*

the system could not find this file. I did remove the first "apple." and could run the command. But I can not still run the program.

I have drilled down to the Preferences and cannot find a file named
com.apple.AppleShareClient.plist* or
com.AppleShareClient.plist*

Can someone give me any idea what I need to do? Or tell me if I am doing something wrong.

Thank you very much.
CustomShoebox is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
AFP not working connecting to 10.8 Mac brijazz OS X Mavericks (10.9) 7 Oct 26, 2013 02:50 PM
Connecting OS X mountain lion to OS X lion server mjsanders5uk Mac OS X Server, Xserve, and Networking 3 Aug 6, 2013 08:58 AM
OSX Freezing When Connecting To Particular AFP Share Vandal. Mac OS X Server, Xserve, and Networking 1 Aug 1, 2013 09:41 AM
Connecting to my Mac Server IPN mcrkana iPad Tips, Help and Troubleshooting 0 Nov 23, 2012 04:43 AM
Lion (non-server) on Mac Mini Server comatory Mac mini 10 Jul 19, 2012 03:56 AM

Forum Jump

All times are GMT -5. The time now is 11:30 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC