Git Product home page Git Product logo

vagrant-active-directory's Introduction

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 and virtualbox and clone this repository. In the repo run the following to start the server:

vagrant up

Login to Windows in using rdesktop with username EXAMPLE\vagrant password vagrant:

rdesktop -d EXAMPLE -u vagrant -p vagrant localhost:53389

The machine will map the LDAP Ports to 7389 (ldap) and 7636 (ldaps) on the localhost. Here's the data you may need to connect:

base_dn:        DC=example,DC=local
domain:         example.local
netbios domain: EXAMPLE
user:           [email protected]
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 2022 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

vagrant-active-directory's People

Contributors

splitbrain avatar bitfrickler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.