Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Automatically connect to AFP servers at login Network
As it took me a while to get automated server connections to AFS servers, the following might help someone else save some time. Here's how I did it...

Short version
A correct AFP URL file has to be created and put into the login items panel.

Details
The format of an AFP URL is:
afp://[username[;AUTH=authtype][:password]@]
server_name[:port]/[volumename][/path]
Note: Shown on two rows for a narrower display; enter as one row without any spaces when creating the AFP URL.

An AFP URL can be generated by dragging the above text (adjusted to your needs) from anywhere typing is possible (like TextEdit, Stickies, etc.) to the desktop. The resulting file can be renamed arbitrarily. Future versions of OS X might depend on the suffix ".afploc", though.

Examples
The user vogunaescht wants to access his home directory vogunaescht_home on the volume shared_hd on the server afp.somewhere.net. His password is letmein. The afp url looks like this:
afp://vogunaescht:letmein@afp.somewhere.net
/shared_hd/vogunaescht_home
[Shown on two rows]

Guest access to the shared volume shared_hd on the server with the IP address 192.168.1.234 looks like this:
afp://;AUTH=No%20User%20Authent@192.168.1.234/shared_hd/
Reference
Networking Developer Documentation: Apple Filing Protocol Client
    •    
  • Currently 3.00 / 5
  You rated: 1 / 5 (2 votes cast)
 
[34,930 views]  

Automatically connect to AFP servers at login | 6 comments | Create New Account
Click here to return to the 'Automatically connect to AFP servers at login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
AFP not AFS
Authored by: burgr on Sep 06, '02 02:33:43PM

The writer seems to be using AFS and AFP interchangeably. AFP stands for Appleshare Filing Protocol, and in this case is what the author should be using. AFS usually stands for Andrew File System, a networked cached file system.



[ Reply to This | # ]
AFP not AFS
Authored by: vogunaescht on Sep 06, '02 02:55:10PM
Sorry about that. The Title should be

Automatically connect to Appleshare servers at login

[ Reply to This | # ]
Finally.. Thank you.
Authored by: sunsoul on Sep 07, '02 04:46:03PM

::wipes a tear off his face::

Thank you so much...

i've searched so many forums for this hint
WHy, but wHY ! didnt i find that one on Apple's Knowledge Base..
Shame on me
Grace upon you

;o)



[ Reply to This | # ]
Having problems with spaces
Authored by: snourse on Sep 08, '02 09:06:01PM

I'm sure I'm missing something obvious, but I can't get this to work on a 10.2 client->(10.2 client or 9.1 PFS) connection whenever the volume or user name has spaces.

I'm using the underscore (shift -), but I get an error -5019 (Unable to connect).

The tip works fine when using users or volume/directory names that don't have spaces.

Anyone able to help?



[ Reply to This | # ]
Having problems with spaces
Authored by: vogunaescht on Oct 12, '02 09:30:09AM
Use %20 instead of a space:

Need space

becomes

Need%20space

[ Reply to This | # ]
Automatically connect to AFP servers at login
Authored by: unimatrixzxero on Nov 05, '06 09:58:08AM

Wow, you make it seem so hard. I usually use a different approach to that problem, and imho a safer(no clear text stored passowrd) and easier way.

I just connect to the server like I normally would. By the server browser or by using "Connect to Server" (CMD+K) in Finder.

Then all you have to do is pull an alias of the drive you mounted into you "Login Items" in SystemPreferences.

If you chose to save the password while connecting to the server "KeyChain" will save it encrypted on your drive.

Following all those steps should get you auto-mounted drives at login.



[ Reply to This | # ]