Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
atelier:chantier:installer-un-controleur-active-directory-sous-jessie-avec-samba-4-4.2.10 [03/12/2016 02:03] winproof [Introduction] |
atelier:chantier:installer-un-controleur-active-directory-sous-jessie-avec-samba-4-4.2.10 [03/12/2016 02:56] winproof [Installation] |
||
---|---|---|---|
Ligne 25: | Ligne 25: | ||
2 cartes réseaux, eth0 (192.168.1.x) pour la connexion sur la box, eth1 (192.168.0.x) pour le LAN. | 2 cartes réseaux, eth0 (192.168.1.x) pour la connexion sur la box, eth1 (192.168.0.x) pour le LAN. | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | Installer les dépendances: | ||
+ | |||
+ | <code>apt-get install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls28-dev libreadline-dev python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev libgpgme11-dev python-gpgme python-m2crypto libsystemd-dev ntp ntpdate</code> | ||
+ | |||
+ | Récupérer les sources et compiler: | ||
+ | |||
+ | <code>wget https://www.samba.org/samba/ftp/samba-latest.tar.gz | ||
+ | tar -xzvf samba-latest.tar.gz | ||
+ | cd samba-4.5.1 | ||
+ | ./configure --with-systemd | ||
+ | make | ||
+ | make install | ||
+ | </code> | ||
+ | |||
+ | <code>echo "export PATH=$PATH:/usr/local/samba/sbin:/usr/local/samba/bin" >> /root/.bashrc | ||
+ | source /root/.bashrc | ||
+ | </code> | ||
+ | |||
+ | modifier /etc/hostname et hosts | ||
+ | reboot | ||
+ | <code>samba-tool domain provision --use-rfc2307 --interactive --option="interfaces=lo eth1" --option="bind interfaces only=yes"</code> | ||
+ | |||
+ | modifier /etc/resolv.conf (ajouter aussi 192.168.1.254 pour ntp au boot) | ||
+ | |||
+ | rm /etc/krb5.conf | ||
+ | |||
+ | cp /usr/local/samba/private/krb5.conf /etc/krb5.conf | ||
+ | |||
+ | reboot | ||
+ | |||
+ | tester samba | ||
+ | |||
+ | systemd samba : | ||
+ | creer /lib/systemd/system/samba-ad-dc.service | ||
+ | <code>[Unit] | ||
+ | Description=Samba4 AD DC | ||
+ | After=network.target remote-fs.target nss-lookup.target | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | ExecStart=/usr/sbin/samba -D | ||
+ | PIDFile=/var/run/samba/samba.pid | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target</code> | ||
+ | |||
+ | |||
+ | systemctl daemon-reload | ||
+ | |||
+ | systemctl enable samba-ad-dc.service | ||
+ | |||
+ | systemctl start samba-ad-dc.service | ||
+ | |||
===== Utilisation ===== | ===== Utilisation ===== | ||