Difference between revisions of "Apple File Sharing"

From Secure Computing Wiki
Jump to: navigation, search
m (Reverted edits by Ijakigyzi (talk) to last revision by Ecrist)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://elykogit.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://elykogit.co.cc CLICK HERE]=
 
----
 
</div>
 
 
== Introduction ==
 
== Introduction ==
 
This document will explain how to get Apple File Sharing (AFP) working on a FreeBSD file server, for Mac OS X clients.  The setup for this document includes a MacBook Pro running OS X 10.5.6 (Leopard) on the client workstation and FreeBSD 7.1 on the server.
 
This document will explain how to get Apple File Sharing (AFP) working on a FreeBSD file server, for Mac OS X clients.  The setup for this document includes a MacBook Pro running OS X 10.5.6 (Leopard) on the client workstation and FreeBSD 7.1 on the server.
Line 17: Line 9:
  
 
Next, add the following lines to /etc/rc.conf:
 
Next, add the following lines to /etc/rc.conf:
&lt;pre>netatalk_enable="YES"
+
<pre>netatalk_enable="YES"
 
afpd_enable="YES"
 
afpd_enable="YES"
 
mdnsresponder_enable="YES"
 
mdnsresponder_enable="YES"
mdnsresponder_flags="-f /usr/local/etc/mDNSResponder.conf"&lt;/pre>
+
mdnsresponder_flags="-f /usr/local/etc/mDNSResponder.conf"</pre>
  
 
== AFPd Configuration ==
 
== AFPd Configuration ==
 
Edit the last line of /usr/local/etc/AppleVolumes.default to read:
 
Edit the last line of /usr/local/etc/AppleVolumes.default to read:
&lt;pre>~ options:noadouble,usedot,nohex&lt;/pre>
+
<pre>~ options:noadouble,usedot,nohex</pre>
  
 
== mDNSResponder ==
 
== mDNSResponder ==
 
Create /usr/local/etc/mDNSResponder.conf, with the following content:
 
Create /usr/local/etc/mDNSResponder.conf, with the following content:
&lt;pre>HOSTNAME _afpovertcp._tcp local. 548&lt;/pre>
+
<pre>HOSTNAME _afpovertcp._tcp local. 548</pre>
  
 
== Up and Running ==
 
== Up and Running ==
 
At this point, you should be able to run the following startup commands and have a browsable network share:
 
At this point, you should be able to run the following startup commands and have a browsable network share:
&lt;pre># /usr/local/etc/rc.d/netatalk start
+
<pre># /usr/local/etc/rc.d/netatalk start
# /usr/local/etc/rc.d/mdnsresponder.sh start&lt;/pre>
+
# /usr/local/etc/rc.d/mdnsresponder.sh start</pre>
  
 
== Extra ==
 
== Extra ==

Latest revision as of 17:35, 26 November 2010

Introduction

This document will explain how to get Apple File Sharing (AFP) working on a FreeBSD file server, for Mac OS X clients. The setup for this document includes a MacBook Pro running OS X 10.5.6 (Leopard) on the client workstation and FreeBSD 7.1 on the server.

Software Installation

The following pieces of software need to be installed on the FreeBSD file server, via the ports tree:

  1. net/netatalk *
  2. net/howl

*Our file server uses LDAP authentication via PAM modules. In our case, we enabled PAM support for netatalk.

Next, add the following lines to /etc/rc.conf:

netatalk_enable="YES"
afpd_enable="YES"
mdnsresponder_enable="YES"
mdnsresponder_flags="-f /usr/local/etc/mDNSResponder.conf"

AFPd Configuration

Edit the last line of /usr/local/etc/AppleVolumes.default to read:

~ options:noadouble,usedot,nohex

mDNSResponder

Create /usr/local/etc/mDNSResponder.conf, with the following content:

HOSTNAME		_afpovertcp._tcp	local.		548

Up and Running

At this point, you should be able to run the following startup commands and have a browsable network share:

# /usr/local/etc/rc.d/netatalk start
# /usr/local/etc/rc.d/mdnsresponder.sh start

Extra

On my company network, we use Pluggable Authentication Module (PAM) to authenticate our services against our LDAP directory. To enable this support, on port build, above, instead of make install, run make WITH_PAM=yes install. Also, create a valid pam config file for netatalk in /usr/local/etc/pam.d. See OpenLDAP for more information on configuring an OpenLDAP server.