Shared Know How


Howto: fix, find, use, make & do it guide

Installing netatalk under CentOS 5 with Leopard support

author Posted by: Tim on date May 2nd, 2008 | filed Filed under: linux

I had a old installation on our personal server of Netatalk withouth encrypted password support. This is fine when you are on your local network and use Tiger but with Leopard this is no longer supported.

I used netatalk-2.0.3

First time I tried to install under centOS5 I got an error

cnid_index.c:277: warning passing argument 2 of 'db->stat' from incompatible pointer type
cnid_index.c:277: error: too few arguments to function 'db->stat'

after some googling I found out that this has to do with support for an outdated Berkeley DB.


This can easily be fixed by editting to lines:

edit line 277 in "bin/cnid/cnid_index.c" and change:

ret = db->stat(db, &sp, 0);
to
ret = db->stat(db, NULL, &sp, 0);

on line 517 of "etc/cnid_dbd/dbif.c" you have to do exactly the same.

Now do configure & make:

./configure --enable-redhat --enable-cups --enable-pgp-uam --enable-krb4-uam --enable-krbV-uam
make install

now edit the config file in /usr/local/etc/netatalk/ according to your preferences.

mine is pretty basic:

afpd.conf

- -transall -ddp -uamlist uams_clrtxt.so,uams_dhx.so -nosavepassword

AppleVolumes.default

/home/tim allow:tim
/home/pieter allow:pieter
/home/wytze allow:wytze
/home/samba allow:wytze,thijs,tim,piete
Did this help you? Wanna help too?

tag8 Responses to “Installing netatalk under CentOS 5 with Leopard support”

  1. Michael Schmid Said,

    Uuuu thanks alot, I had the same problem on SlugOS with my NSLU.

    Thanks for help!

  2. Rainer Said,

    Yes, it works ! (Centos5)
    Thanks a lot !

  3. Rainer Said,

    To solve permission problems with Leopard,
    see: http://www003.upp.so-net.ne.jp/hat/netatalk/cjk.html

    Use the patch you got from there, then patch things like described above.

  4. Doug Lytle Said,

    You saved another one,

    Thanks again!

  5. Gerben Roest Said,

    Thanks for the tip! It’s a pity that Red Hat doesn’t include a netatalk rpm like they used to.

  6. Compiling Netatalk 2.03 on FC or Centos « my toolkit Said,

    [...] Thankfully I found the solution here [...]

  7. Justus Said,

    Thanks a lot! That allows compiling on Ubuntu too.

    Justus

     Add A Comment

trackback Trackback URI | rsscomment Comments RSS