Innanzitutto รจ necessario verificare che il nome dell'host (hostname) sia corretto, e che sia impostato un dominio per l'host stesso. Verifichiamo quindi le impostazioni in /etc/hosts e /etc/hostname:
/etc/hosts
192.168.0.1 pdc.esempio.lan pdc 127.0.0.1 localhost.localdomain localhost
/etc/hostname
pdc
rimuoviamo ora dei pacchetti inutili:
# apt-get remove -y --purge dhcp3-client dhcp-clientrimuoviamo anche apparmor, che potrebbe darci dei problemi con l'integrazione
# apt-get remove -y --purge apparmor apparmor-utils apparmor-profilesprocediamo ora con l'installazione dei pacchetti necessari:
# DEBIAN_FRONTEND=noninteractive # export DEBIAN_FRONTEND=noninteractive # apt-get update # apt-get install -y bind9 openssl ssl-cert libsasl2-2 libsasl2-modules sasl2-bin libsasl2-modules-gssapi-heimdal \ libnss-ldap slapd ldap-utils libpam-krb5 heimdal-kdc heimdal-clients-x heimdal-clients libkrb5-dev heimdal-docs \ heimdal-servers-x heimdal-servers libkadm5clnt7-heimdal libkadm5srv8-heimdal libhdb9-heimdal libgssapi2-heimdal \ libkrb5-22-heimdal libasn1-8-heimdal krb5-config heimdal-kcm smbclient samba samba-common samba-doc smbfs \ libsmbclient cupsys-common libcupsys2 smbldap-tools keyutils gzip ntp ipcalc # unset DEBIAN_PRIORITY # unset DEBIAN_FRONTEND
iniziamo fermando tutti i servizi appena installati
# /etc/init.d/samba stop # /etc/init.d/slapd stop # /etc/init.d/saslauthd stop # /etc/init.d/heimdal-kcm stop # /etc/init.d/heimdal-kdc stop # /etc/init.d/bind9 stop # /etc/init.d/ntp stoped effettuiamo un backup dei file di configurazione
# mkdir -p /root/backup-confs/ # mkdir -p /root/backup-confs/etc/ # mkdir -p /root/backup-confs/etc/ldap/ # mkdir -p /root/backup-confs/etc/default/ # mkdir -p /root/backup-confs/etc/samba/ # mkdir -p /root/backup-confs/etc/network/ # cp -Rap /etc/hosts /root/backup-confs/etc/ # cp -Rap /etc/resolv.conf /root/backup-confs/etc/ # cp -Rap /etc/ldap.conf /root/backup-confs/etc/ # cp -Rap /etc/inetd.conf /root/backup-confs/etc/ # cp -Rap /etc/nsswitch.conf /root/backup-confs/etc/ # cp -Rap /etc/krb5.conf /root/backup-confs/etc/ # cp -Rap /etc/ntp.conf /root/backup-confs/etc/ # cp -Rap /etc/request-key.conf /root/backup-confs/etc/ # cp -Rap /etc/network/interfaces /root/backup-confs/etc/network/ # cp -Rap /etc/samba/smb.conf /root/backup-confs/etc/samba/ # cp -Rap /etc/bind/ /root/backup-confs/etc/ # cp -Rap /etc/ldap/ /root/backup-confs/etc/ # cp -Rap /etc/default/slapd /root/backup-confs/etc/default/ # cp -Rap /etc/default/saslauthd /root/backup-confs/etc/default/ # cp -Rap /etc/default/bind9 /root/backup-confs/etc/default/ # cp -Rap /usr/sbin/smbldap-useradd /root/backup-confs/ # cp -Rap /usr/sbin/smbldap-passwd /root/backup-confs/
Stefano Sasso 2009-04-16