C'est le genre de migration qu'on fait de manièe brutale et sans prendre de gant :) Pour les paquets, j'ai ajouté les paquets qui me manquaient
apt-get install  libldap2-dev libkrb5-dev uuid-dev libpam0g-dev zlib1g-dev libkrb5-dev libkrb53 libpam-krb5 libcomerr2 libkrb5-22-heimdal \
libpam-krb5-migrate-heimdal heimdal-dev heimdal-kcm libkadm5clnt7-heimdal libkeyutils-dev keyutils
On télécharge
cd samba-3.5.8/source3/

sed -i "s:COMPAT_H:AP_COMPAT_H:g" include/config.h.in

./configure --cache-file=./config.cache --with-fhs --enable-shared --enable-static --disable-pie --prefix=/usr \
--sysconfdir=/etc --libdir=/etc/samba --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var \
--with-rootsbindir=/sbin --with-pammodulesdir=/lib/security --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass \
--with-libsmbclient --with-winbind --with-shared-modules=idmap_rid,idmap_ad --with-automount --with-ldap --with-ads --with-dnsupdate\
 --with-cifsmount --with-acl-support --with-quotas

make

echo "/etc/samba/" >> /etc/ld.so.conf.d/samba.conf

ldconfig
Voilà  pour le moment. Je complèterais ce billet plus tard.