How to create a LDAP Database on Windows Server

How to create a LDAP Database on Windows Server

Creating a LDAP Database on Windows Server.

Server Manager


Image 01: Server manager option on the startup menu.

In Windows Server is natively possible to create a LDAP database to feed an Active Directory structure. We will need to access the Server Manager to install the Active Directory service. First, locate the Server Manager on the Startup Menu and launch it.

 


Image 02: Server Manager Main window.

In its main window, access the "Roles" Option, and create a new role using "Add Roles"

 


Image 03: Roles.

 

Add Role Wizard


Image 04: Add Role Wizard home.

Read and follow this page recomendations and then continue.

 


Image 05: Choosing services to install.

This page allows us to choose the services we want to install to the role we are adding. Check the option "Active Directory Domain Services" and continue

 


Image 06: Active Directory Domain Services.

There is some important notes about the Active Directory Domain Services in this page.

 


Image 07: Installation.

This page show what will be installed from now. To proceed with the installation click the "Install" button. After the processing, there will be shown the "Results" window with the installation log.

 


Image 08: Results.

 

 

Domain Controller


Image 09: Active Directory role page.

 


Image 10: AD DS Install Wizzard.

This wizzard will create our domain(or associate an existing one).

 


Image 11: OS compatibility.

 


Image 12: Creating a new tree.

To create a new tree, select the "Create a new domain in a forest" option and click "Next" to set up its name.

 


Image 13: Setting up a domain Qualified Name.

For this example we are going to use admartini.scriptcase.com as the domain name.

 


Image 14: Setting the functional level for admartini.scriptcase.info.

This step will define the computers that will be able to become domain servers or delegate controllers.

 


Image 15: Additional options.

To make sure that other computers will be able to find this domain, turn it on a DNS server or use your default DNS server, relationing the domain name to the AD server's IP adress.

 


Image 16: Defining database, log and SYSVOL path.

Here you can define the path for the LDAP database, the log files and the SYSVOL. There is no need to change this in most of cases.

 


Image 17: Setting up a Restore Mode password.

This password will allow you to access the AD server's Restore Mode, it is not related with the LDAP admin password.

 


Image 18: Installation summary.

 


Image 19: Installation progress.

 


Image 20: Installation finished.

 

Creating a New User


Image 21: Creating new user Object.

Select the "Active Directory Users and Computers" option under the AD DS menu, then select your domain and right click to create a new user object. Insert the user data and define a new password for it. Then confirm the changes to finish the process.

 


Image 22: New User data.

 


Image 23: Defining user's password.

 


Image 24: Object Created.

 

 

Results

This tutorial created a LDAP authentication environment. The authentication data for this example are:

DomainADMARTINI
DNDC=admartini,DC=scriptcase,DC=info
User NameCN=Henrique C. Barros,DC=admartini,DC=scriptcase,DC=info OR hbarros@admartini.scriptcase.info

 

 



    • Related Articles

    • How to create a simple LDAP Database on Linux

      Creating a simple LDAP Database on Linux. Installing and configuring slapd We are going to use OpenLDAP(slapd) to build a LDAP database accessible for the security module WITHOUT simulating an Active Directory. This tutorial will create an LDAP ...
    • Connection with MSSQL Database

      Scriptcase has 3types of connections that can be used to communicate with Database MSSQL Server. - MSSQL Server Native SRV PDO - MSSQL Server Native SRV - MSSQL Server ODBC 1. Connection ODBC (MSSQL Server ODBC)  This connection may be used on the ...
    • Installing Scriptcase with PHP 7.3 on Windows

      This documentation will walk you through the steps necessary to install PHP 7.3, Apache 2.4, and Scriptcase manually. When performing this type of installation, you are responsible for configuring your entire environment as well as database ...
    • Installing Scriptcase with PHP 7.0 on Windows

      This article explains PHP 7.0 and Apache 2.4 installation to ScriptCase use. Supported Operating Systems: Windows Server 2008 SP2 2008 R2 SP1 2012 2012 SP2 2016 Windows 7 SP1 Vista SP2 8 8.1 10 Necessary Files: PHP 7.0: Click Here Apache 2.4: Click ...
    • Scriptcase Installer for Windows - PHP 7.3

      The Scriptcase installer installs Apache, PHP, and Scriptcase on your operating system. The installer does not include a database. Prerequisites To download the Scriptcase Installer, go to our download page clicking here. Listed below are all the ...