# Proxmox LDAP Initialisation

#### Prérequis:

- Avoir un active directory joignable depuis le proxmox (ping pve vers ad)
- Avoir une adresse IP sur vmbr0 et vmbr1
- avoir un utilisateur bind\_proxmox sur l'active directory

Adresse IP sur la WAN et la LAN

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/Wd9image.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/Wd9image.png)

Aller dans datacenter puis realms :

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/JUFimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/JUFimage.png)

Cliquer sur add, active directory server:

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/CGnimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/CGnimage.png)

dans le bind user mettre :

CN=bind\_pfsense,OU=CONNECTEURS,OU=MEGAPRODUCTION,OU=UTILISATEURS,DC=megaproduction,DC=local --&gt;<span style="background-color: rgb(236, 240, 241); color: rgb(224, 62, 45);">a modifier selon votre ad</span>

dans le doute mettre le bind password

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/8zNimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/8zNimage.png)

Puis creer une synchronisation automatique:

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/XAHimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/XAHimage.png)

Pour tester la connexion cliquer sur run now, si aucune erreur = sa marche

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/99Pimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/99Pimage.png)

verifier la connexion en se connectant bien sur le realm megaproduction.local

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/KKVimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/KKVimage.png)

Une fois que vous pouvez vous connecter il faut ajouter les permissions a vos utilisateur :

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/5g1image.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/5g1image.png)

[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-01/scaled-1680-/0wdimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-01/0wdimage.png)

une fois les permission donnée c'est tout bon vous avez acces a vos machines sur vos comptes proxmox