Installing netatalk under CentOS 5 with Leopard support
Posted by: Tim on
May 2nd, 2008 |
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,pieteDid this help you? Wanna help too?
Tags: 
May 25th, 2008 at 12:19 am
Uuuu thanks alot, I had the same problem on SlugOS with my NSLU.
Thanks for help!
August 13th, 2008 at 3:38 pm
Yes, it works ! (Centos5)
Thanks a lot !
August 20th, 2008 at 4:45 pm
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.
October 28th, 2008 at 8:39 pm
You saved another one,
Thanks again!
December 23rd, 2008 at 4:15 pm
Thanks for the tip! It’s a pity that Red Hat doesn’t include a netatalk rpm like they used to.
January 5th, 2009 at 6:23 pm
[...] Thankfully I found the solution here [...]
January 8th, 2009 at 3:59 pm
Thanks a lot! That allows compiling on Ubuntu too.
Justus
February 13th, 2009 at 3:26 am
[...] From: http://www.sharedknowhow.com/2008/05/installing-netatalk-under-centos-5-with-leopard-support/ [...]
Add A Comment