# vagrant-active-directory **Repository Path**: mirrors_splitbrain/vagrant-active-directory ## Basic Information - **Project Name**: vagrant-active-directory - **Description**: Vagrant environment for Windows Server based Active Directory - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-12 - **Last Updated**: 2026-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vagrant environment for a Windows Server based Active Directory The idea of this repository is to have an easy way to test LDAP authentication against an Active Directory without the hassle of running a Windows Server, installing, configuring and populate an AD server. To do this it provides a Vagrant file that lets you spin up a preconfigured virtual machine that has everything you need for testing. **Note:** this image is currently a work in progress and may change over time. This means tests against the image may break in the future because the data in the provided AD changes. But I expect it to settle eventually. ## Usage This vagrant box provides you with a preconfigured AD-Server filled with **users** to test against. Have a look at `scripts/users.csv` to see what's available. They all have the password `Foo_b_ar123!`. The default password policy is in effect, but MinPasswordAge and PasswordHistory have been disabled. For all accounts password expiration has been disabled. To get started, install `vagrant` plus either `virtualbox`, or `libvirt` with the `vagrant-libvirt` plugin. Then clone this repository and run the following to **start the server**: vagrant up To force a specific provider when both are installed: vagrant up --provider=libvirt The VM is reachable on the host at **`192.168.56.5`**. **Login to Windows** in using rdesktop with username `EXAMPLE\vagrant` password `vagrant`: rdesktop -d EXAMPLE -u vagrant -p vagrant 192.168.56.5 For **LDAP** access, here's the data you may need to connect: base_dn: DC=example,DC=local domain: example.local netbios domain: EXAMPLE ldap host: 192.168.56.5 (port 389) ldaps host: 192.168.56.5 (port 636) user: vagrant@example.local password: vagrant For **SSL and TLS** a self-signed certificate is generated when the machine starts for the first time. The certificate is also put into the repository's root folder name `cert.der`. You may need to disable certificate verification of your client, or import the certificate to you trusted storage. If needed, you can convert the certificate to PEM format using openssl: openssl x509 -inform der -in cert.der -out cert.pem **Shutdown** the machine with: vagrant halt The box is based on the official Windows Server 2025 Trial images by Microsoft. The installation is **valid for 180 days**. You can simply destroy the machine and set it up again for another trial period. vagrant destroy ## Thanks This image is based on the works and information at * https://github.com/bitfrickler/vagrant-active-directory-2016 * https://github.com/rgl/windows-domain-controller-vagrant * https://emeneye.wordpress.com/2013/02/28/importing-users-into-active-directory-from-a-csv-file-using-powershell/ * https://infiniteloop.io/powershell-self-signed-certificate-via-self-signed-root-ca/ * various tutorials on PowerShell scripting