Installing netatalk under CentOS 5 with Leopard support

Submitted by Tim on 02 May 2008 - 15:16

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, -nosavepassword


/home/tim allow:tim
/home/pieter allow:pieter
/home/wytze allow:wytze
/home/samba allow:wytze,thijs,tim,pieter


user picture>
- 25 May 2008 - 00:19

Uuuu thanks alot, I had the same problem on SlugOS with my NSLU. Thanks for help!
user picture>
- 13 Aug 2008 - 15:38

Yes, it works ! (Centos5) Thanks a lot !
user picture>
- 20 Aug 2008 - 16:45

To solve permission problems with Leopard, see: Use the patch you got from there, then patch things like described above.
user picture>
- 28 Oct 2008 - 20:39

You saved another one, Thanks again!
user picture>
- 08 Jan 2009 - 15:59

Thanks a lot! That allows compiling on Ubuntu too. Justus
user picture>
- 23 Dec 2008 - 16:15

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

Add new comment

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.