AFP with Open Directory

How to get FreeNAS 0.7 to authenticate via LDAP against Open Drirectory on OS X Server.

From a forum post on the FreeNAS forums.

UAMS compiling

mkdir -p /extra/src
cd /extra/src
wget http://voxel.dl.sourceforge.net/project/netatalk/netatalk/2.0.5/netatalk-2.0.5.tar.gz
tar zxf netatalk-2.0.5.tar.gz
cd netatalk-2.0.5

Configuration options:

./configure \
--bindir=/usr/local/bin \
--sbindir=/usr/local/sbin \
--sysconfdir=/var/etc \
--localstatedir=/var \
--enable-largefile \
--disable-tcp-wrappers \
--disable-cups \
--with-pam \
--with-uams-path=/etc/uams/

Compile it:

make
make install

The two files you want are:

/etc/uams/uams_pam.so
/etc/uams/uams_dhx_pam.so

Installation
If you are running from a hard drive install, you can simply copy uams_pam.so and uams_dhx_pam.so to /etc/uams. Then create symbolic links to them:

cd /etc/uams
ln -sf uams_dhx_pam.so uams_dhx.so
ln -sf uams_pam.so uams_clrtxt.so

However, if you are running an embedded install on a compact flash drive, that modification will be wiped out at reboot.The trick to getting the change to stick is to either update the disk image on the flash drive (pain in the butt), or use Command Scripts to copy the files and sym link them after bootup.

http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=50&t=913&p=25518#p25518

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 4 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff