# Problème pour joindre un Domaine Windows (Kerberos, Samba, Winbind)

**URL:** <https://www.debian-fr.org/t/probleme-pour-joindre-un-domaine-windows-kerberos-samba-winbind/83059>\
**Category:** Support Debian\
**Created:** [Octobre 18, 2020, 4:20 UTC](https://www.debian-fr.org/t/probleme-pour-joindre-un-domaine-windows-kerberos-samba-winbind/83059 "2020-10-18T04:20:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexter74](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dexter74/32/4705_2.png) [@dexter74](https://www.debian-fr.org/u/dexter74)\
**Post date:** [Octobre 18, 2020, 4:20 UTC](https://www.debian-fr.org/t/probleme-pour-joindre-un-domaine-windows-kerberos-samba-winbind/83059/1 "2020-10-18T04:20:28Z")

</div>

Bonjour,

Suite à l’installation de mon Domaine sous Windows Server 2016, j’aimerai ajouter mes machines Linux.

J’ai du mal à comprendre les étapes car les tutoriaux sont tous différents.

**SWMUPADMIN.VLAN.LOCAL**

> - OS: Windows Server 2016
> - **Hostname:** SWMUPADMIN
> - **Domain:** VLan.local
> - **IP:** 192.168.10.1
> - **Compte:** TEST
> - **Mot de pass:** Azerty74!
> - **Rôle:** DNS, DHCP, AD

Côté Serveur:  
Doc: [https://wiki.samba.org/index.php/AD\_Schema\_Version\_Support](https://wiki.samba.org/index.php/AD_Schema_Version_Support)

> - Dowgrade la forêt / Domaine en 2012 R2
> 
> > - Import-Module -Name ActiveDirectory
> > - Set-ADForestMode -Identity «&nbsp;VLAN.LOCAL&nbsp;» -ForestMode Windows2012R2Forest
> > - Set-ADDomainMode –Identity “VLAN.LOCAL” –DomainMode Windows2012R2Domain

> - Downgrade du schéma via l’outil «&nbsp;Modification ADSI&nbsp;»
> 
> > Démarrer \> Outils d’administration Windows \> Modification ADSI  
> > Puis Connexion \> Sélectionnez un contexte d’attributions de noms par défaut \> Schéma  
> > Clique droit sur «&nbsp;CN=Schema,CN=Configuration,DC=VLAN,DC=local&nbsp;» \> Propriété  
> > Filtrer \> Afficher uniquement les attributs ayant des valeurs  
> > Editer l’attribut objectVersion en 69.

**SLDEBIAN02.Vlan.local**

> **Distribution:** Debian 10 (buster)

> **/etc/host:**
> 
> > 127.0.0.1 localhost  
> > 127.0.1.1 sldebian02.vlan.local sldebian02

> **/etc/hostname**
> 
> > sldebian02.vlan.local

**Etape 1: Modification des dépôts:**

> echo «&nbsp;deb [Index of /debian-security](http://security.debian.org/debian-security) buster/updates main contrib  
> deb-src [Index of /debian-security](http://security.debian.org/debian-security) buster/updates main contrib  
> deb [Index of /debian](http://ftp.de.debian.org/debian) buster main&nbsp;» \> /etc/apt/sources.list  
> apt update ;  
> apt update -y

**Etape 2: Installation des paquets**

> apt-get install -y sudo  
> apt-get install -y adcli libnss-sss libpam-sss krb5-user ntpdate oddjob oddjob-mkhomedir packagekit realmd samba-common samba-common-bin sssd sssd-tools  
> apt install -y ntp ntpdate

**Etape 3: Synchronisation NTP**

> **/etc/ntp.conf**
> 
> > #pool [0.debian.pool.ntp.org](http://0.debian.pool.ntp.org) iburst  
> > #pool [1.debian.pool.ntp.org](http://1.debian.pool.ntp.org) iburst  
> > #pool [2.debian.pool.ntp.org](http://2.debian.pool.ntp.org) iburst  
> > #pool [3.debian.pool.ntp.org](http://3.debian.pool.ntp.org) iburst  
> > server swmupadmin.vlan.local

> **/etc/default/ntpdate**
> 
> > NTPDATE\_USE\_NTP\_CONF=yes  
> > NTPSERVERS=«&nbsp;swmupadmin.vlan.local&nbsp;»  
> > NTPOPTIONS=«&nbsp;-u&nbsp;»

> sudo crontab -e
> 
> > 18 1 \* \* \* /usr/sbin/ntpdate-debian  
> > @reboot /usr/sbin/ntpdate-debian

**Etape 4: Joindre le domaine**

> > echo Azerty74! | /usr/sbin/realm join -U TEST SWMUPADMIN.vLan.local

> **Vérification**  
> getent passwd [Drthrax74@vLan.local](mailto:Drthrax74@vLan.local)
> 
> > [drthrax74@VLAN.local](mailto:drthrax74@VLAN.local):\*:1262201106:1262200512:XXXXXXXX:/home/drthrax74@VLAN.local:/bin/bash

* * *

> **/etc/samba/smb.conf:**
> 
> > Besoin d’aide

> **/etc/krb5.conf :**
> 
> > Besoin d’aide
> > 
> > > L’entrée DNS du serveur est crée , le test Kinit est OK.

> **winbind.conf:**
> 
> > Besoin d’aide

> **nsswitch.conf:**
> 
> > Besoin d’aide

---

<div class="post-metadata">

**Author:** ![dexter74](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dexter74/32/4705_2.png) [@dexter74](https://www.debian-fr.org/u/dexter74)\
**Post date:** [Novembre 11, 2020, 8:19 UTC](https://www.debian-fr.org/t/probleme-pour-joindre-un-domaine-windows-kerberos-samba-winbind/83059/2 "2020-11-11T20:19:16Z")

</div>

Up du topic . Personne à une idée ?
