Overview
LDAP Stands for Lightweight Directory Access Protocol. In other words, that protocols allows us to set up user authentication as a service. The LDAP architecture consists of Domain Controller which either allows or disallows users to authenticate. The authentication is again done via the standard username and password. But this time, the username and passwords are created on the domain and not directly on the server.
The authentication is done via the Domain Controller using Kerberos and a small Database.
So in order to do it, we have to enable and install that feature on the server. Please follow the instructions below:
Install the LDAP Features
To enable this feature, open the server management:
- Server Manager → Manage → Add Roles and Features
- Before you begin → Next
- Installation Type → Role-Based or Feature-Based Installation → Next
- Server Selection → Select your server → Next
- Server Roles → Click on: Active Directory Domain Services → Next
- Add Roles and Features Wizard → Add Features
- Server Roles → Next
- Features → Next
- Active Directory Domain Services (AD DS) → Next
- Confirmation → Restart the destination server automatically if required.
- Results → Wait to complete :) → Close
Configure the LDAP
Nice, so we have enabled the LDAP, now we have to promote our server to domain controller: P.S. the server which will CONTROL the authentication.
- Server Manager → AD AS → More → Promote This server to Domain Controller
- Deployment Configuration → Create new forecast → Enter Domain Name (e.g. sqldom.com) → Next
- Domain Controller Options → Enter DSRM Password → Next
- Additional Options → Next
- Paths → Next
- Review Options → Next
- Prerequisites Checks → Install → Wait → It will restart automatically
After you add couple servers (below more instructions) You will have something like that:
Add server to Domain
After we have domain controller, let's see how our architecture looks like:
- winnodea - Domain Controller, IP: 10.20.14.6
- winnodeb - Not part of the domain, IP: 10.20.14.5
To add winnodeb to the domain, go to the server you wish to add and insure that the DNS server points to the domain controller:
After that, follow these steps to add the computer to the domain:
- Right Click on Computer → Properties → Change Settings
- System Properties → Press the “Computer Name” tab → Change
- Computer Name/Domain Changes → Press the Domain radio Button and Enter the Domain Name
- Provide the credentials for the DOMAIN CONTROLER
- The computer will restart automatically and upon login, you will be able to use the domain account :)