kb:linux:samba:initialiser_samba_en_tant_que_controleur_de_domaine
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
kb:linux:samba:initialiser_samba_en_tant_que_controleur_de_domaine [2019/11/29 14:16] – beu | kb:linux:samba:initialiser_samba_en_tant_que_controleur_de_domaine [2019/11/29 16:00] (Version actuelle) – beu | ||
---|---|---|---|
Ligne 12: | Ligne 12: | ||
Pour commencer, on va installer les packets nécessaires (ignorez les configurations demandées): | Pour commencer, on va installer les packets nécessaires (ignorez les configurations demandées): | ||
<code bash> | <code bash> | ||
- | # apt install acl attr samba krb5-config | + | # apt install acl attr samba krb5-user |
</ | </ | ||
- | |||
(Vous pouvez aussi [[kb: | (Vous pouvez aussi [[kb: | ||
+ | |||
+ | Il vous faudra commencer par arrêter samba : | ||
+ | |||
+ | <code bash> | ||
+ | # systemctl disable --now nmbd smbd winbind | ||
+ | </ | ||
+ | |||
+ | Il vous faudra supprimer la configuration de samba : | ||
+ | |||
+ | <code bash> | ||
+ | # rm / | ||
+ | </ | ||
Pour devenir DC, il suffit de rentrer la commande : | Pour devenir DC, il suffit de rentrer la commande : | ||
- | < | + | |
+ | < | ||
# samba-tool domain provision --use-rfc2307 --interactive | # samba-tool domain provision --use-rfc2307 --interactive | ||
+ | </ | ||
+ | <code file [highlight_lines_extra=" | ||
Realm: DOMAIN.TLD | Realm: DOMAIN.TLD | ||
| | ||
Ligne 60: | Ligne 74: | ||
Setting up sam.ldb rootDSE marking as synchronized | Setting up sam.ldb rootDSE marking as synchronized | ||
Fixing provision GUIDs | Fixing provision GUIDs | ||
- | A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/ | + | A Kerberos configuration suitable for Samba 4 has been generated at /var/lib/ |
Setting up fake yp server settings | Setting up fake yp server settings | ||
Once the above files are installed, your Samba4 server will be ready to use | Once the above files are installed, your Samba4 server will be ready to use | ||
Ligne 70: | Ligne 84: | ||
</ | </ | ||
- | Il vont vous demander | + | Il faudra entrer |
- | A noté qu'il faut mettre | + | |
+ | On va reconfigurer Kerberos, avec le chemin de la configuration de Kerberos surligné précédemment: | ||
+ | |||
+ | <code bash> | ||
+ | # rm /etc/krb5.conf | ||
+ | </ | ||
+ | <code bash> | ||
+ | # ln -sf / | ||
+ | </ | ||
Il faut ensuite modifier le fichier /// | Il faut ensuite modifier le fichier /// | ||
- | <code> | + | < |
- | domain domain.tld | + | |
search domain.tld | search domain.tld | ||
nameserver 192.168.10.2 | nameserver 192.168.10.2 | ||
</ | </ | ||
- | Il faut ensuite configurer Kerberos en faisant | + | Et pour finir démarrer SAMBA : |
- | + | < | |
- | < | + | # systemctl unmask samba-ad-dc |
- | # rm / | + | |
- | # ln -sf / | + | |
</ | </ | ||
- | Et pour finir démarrer SAMBA avec la commande non moins difficile : | + | puis |
- | < | + | |
- | # samba | + | < |
+ | # systemctl enable --now samba-ad-dc | ||
</ | </ | ||
- | |||
- | Maintenant il vous faut l' | ||
- | * [[Administrer un Contrôleur de Domaine SAMBA]] | ||
- | * [[https:// | ||
- |
kb/linux/samba/initialiser_samba_en_tant_que_controleur_de_domaine.1575037019.txt.gz · Dernière modification : 2019/11/29 14:16 de beu