How to Install ADAM: Secure Windows LDAP Service
In this article
ADAM (Active Directory Application Mode) is Microsoft's standalone LDAP directory service for Windows. Installing it gives you a lightweight, non-domain LDAP server you can use for application authentication, directory-enabled apps, or testing—without deploying a full domain controller. The official installer is part of the Windows Server 2003 R2 or Windows Server 2008 media (as an optional component), and on later Windows versions you use AD LDS (Active Directory Lightweight Directory Services), which is the same product under a new name. This guide walks you through installing ADAM on a supported Windows Server system, covering prerequisites, the setup wizard, common pitfalls, and troubleshooting. Note that menu labels and wizard wording can vary slightly by Windows version and service pack.
What You'll Need
- A Windows Server machine (Windows Server 2003 R2, Windows Server 2008, or later with the AD LDS role available). ADAM is not supported on client Windows editions for production use.
- Local administrator rights on the server.
- The Windows installation media or access to the optional component files (ADAM is not installed by default).
- A planned LDAP port (default 389 for LDAP, 636 for LDAPS) and a service account or built-in Network Service account for the ADAM instance.
- An instance name and a data directory path (e.g., C:\ADAM\Data).
- Optional: a certificate for LDAPS if you need encrypted LDAP traffic.
Step-by-Step
- Confirm your Windows version supports ADAM/AD LDS. On Windows Server 2008 and later, ADAM is renamed AD LDS and is available as a server role. Open Server Manager and check Roles. On Windows Server 2003 R2, ADAM is an optional component under Add/Remove Windows Components. If you are on a client OS, stop here—use a server VM instead.
- Install the ADAM/AD LDS binaries. On Windows Server 2003 R2, open Control Panel > Add or Remove Programs > Add/Remove Windows Components, tick Active Directory Application Mode (ADAM), and complete the wizard using your Windows media. On Windows Server 2008 or later, open Server Manager > Roles > Add Roles, select Active Directory Lightweight Directory Services, and finish the wizard. No reboot is usually required, but restart if prompted.
- Start the ADAM Setup wizard. After the binaries are installed, launch the ADAM Setup wizard from Administrative Tools > Active Directory Application Mode Setup (or AD LDS Setup on later versions). The wizard creates an ADAM instance—think of it as one isolated directory service.
- Choose Create a new instance. Give the instance a clear name (e.g., AppAuth). This name becomes the service name and the folder under which data is stored.
- Set the LDAP port. Accept 389 for standard LDAP, or choose a custom port if 389 is already in use by another LDAP service. If you plan to use LDAPS, note that 636 is the conventional port; you will bind a certificate later.
- Select the application partition. Choose Create an application partition and supply a distinguished name (e.g., DC=app,DC=local). This is the root of your directory tree. Avoid using a name that matches an existing AD domain if the server is domain-joined.
- Pick the service account. For simplicity, use Network Service; for tighter control, specify a dedicated low-privilege domain or local account. The account needs Log on as a service rights and read/write access to the data directory.
- Choose the data files location. Accept the default (under %ProgramFiles%\Microsoft ADAM\
) or point to a dedicated volume. Keep logs and data on separate disks if you expect heavy load. - Select the administrator group. By default, the local Administrators group is granted ADAM administrative rights. You can specify a different group if you want delegated administration.
- Import LDIF files (optional). The wizard offers to import standard LDIF schema files (MS-AdamSchema, MS-User, etc.). For a basic directory, accept the defaults; you can import custom schema later.
- Finish and verify. Complete the wizard. Open Services (services.msc) and confirm the ADAM instance service is running. Then test with an LDAP client such as ldp.exe (from Windows Support Tools) by connecting to localhost on port 389 and performing a simple bind.
Common Mistakes
- Installing on a client OS. ADAM/AD LDS is a server component; client Windows editions do not officially support it for production.
- Port conflict. If another LDAP service (including Active Directory on a domain controller) already uses 389, the instance will fail to start. Choose a different port or a different server.
- Wrong service account permissions. A service account without Log on as a service or without read/write to the data folder will cause the instance to fail at startup.
- Mismatched partition name. Using a distinguished name that collides with an existing AD domain can confuse clients and replication tools.
- Forgetting LDAPS. Plain LDAP sends credentials in clear text. If you need secure binds, plan to install a certificate and configure LDAPS after setup.
- Skipping schema imports. If you need user objects, import the MS-User LDIF; otherwise, you will have an empty schema and cannot create standard objects.
Tips
- Use a dedicated service account rather than Network Service if you need to audit access or move the instance later.
- Document the instance name, port, partition DN, and service account—these are needed for every client connection string.
- Back up the data directory regularly; ADAM has no built-in replication unless you configure it.
- Test with ldp.exe before pointing applications at the new directory.
- If you are on Windows Server 2008 or later, use AD LDS documentation—commands and wizards are nearly identical, but the role name differs.
Troubleshooting
If the ADAM instance service fails to start, first check the Windows Event Viewer under Application and Services Logs > ADAM (or AD LDS). Common causes are a port conflict, a service account logon failure, or a missing data folder. Try starting the service manually from Services and read the error code. If the wizard fails during installation, confirm the Windows media is available and that the optional component files are not corrupted. If LDAP clients cannot connect, verify the firewall allows the chosen port and that the instance is listening (use netstat -an | findstr 389). If binds fail with invalid credentials, check that the user object exists in the correct partition and that the bind DN is formatted correctly. For LDAPS issues, confirm the certificate is installed in the Local Computer personal store and that the instance is configured to use it. If you cannot resolve the problem, uninstall the instance via the ADAM Setup wizard, reboot, and reinstall—this removes the instance data, so back up first if needed.
Frequently Asked Questions
Is ADAM the same as AD LDS?
Yes. ADAM was renamed Active Directory Lightweight Directory Services (AD LDS) starting with Windows Server 2008. The core functionality is the same; only the name and some wizard labels changed.
Can I install ADAM on Windows 10 or 11?
No. ADAM/AD LDS is a server role and is not officially supported on client Windows editions. Use a Windows Server VM or a supported server OS.
Does ADAM require a domain?
No. ADAM is standalone and does not need Active Directory domain services. It can run on a workgroup server or a domain-joined server without being part of the domain.
How do I change the LDAP port after installation?
You cannot change the port through the wizard after creation. The supported method is to uninstall the instance and recreate it with the desired port, or edit the instance configuration carefully—back up first.
What is the default administrator account for ADAM?
There is no built-in administrator user like in AD. Administrative rights are granted to the local Administrators group (or a group you specify during setup). You bind as a user object you create in the directory or as a Windows account with rights.
Is LDAP traffic encrypted by default?
No. Standard LDAP on port 389 is clear text. To encrypt, configure LDAPS on port 636 with a certificate, or use SASL signing/sealing if your client supports it.