Legacy Knowledge Base
Published Sep. 10, 2025

Setting up Microsoft Server AD with Liferay

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • This article provides you detailed steps to set up and configure Microsoft Server AD to Liferay.

Environment

  • Liferay DXP 7.1

Resolution

Changing Computer Name:

  1. Control Panel → System and Security → System
  2. Computer name, domain and workgroup settings → Change Settings
  3. Click Change. You will see your computer's name listed.
  4. In the space marked Computer Name, delete the text and enter a new name for your computer (Example Name: WINSERVER )
  5. Restart

Set up Active Directory:

  1. On server manager click on 'Add roles and features'Screenshot__359_.png
  2. It opens the add roles and features wizard. Click on Next to proceed
  3. Select Role-based or feature-based installation and click on NextScreenshot__360_.png
  4. Select your computer name and click on NextScreenshot__361_.png
  5. In this window put tick box for Active Directory Domain Services and DNS
    Server. It will prompt to show you what are the associated features for the role. Click on
    add features to add all (ignore the DNS warning for the moment). Then click Next to
    continueScreenshot__362_.png
  6. In the next window, mark all the .NET Framework Features and click NextScreenshot__363_.png
  7. It will give a brief description about AD DS service and DNS Server, click next to proceed
    and InstallScreenshot__364_.png
  8. Once installation completes, click on the option Promote this server to a domain
    controllerScreenshot__365_.png
  9. Then it will open the active directory configuration wizard, select the option to Add new
    forest and type the root domain name (Example: INTDOMAIN.LOCAL )Screenshot__366_.png
  10. Type a password for DSRM, then click NextScreenshot__367_.png
  11. No need for any DNS modifications yet. Click Next to proceedScreenshot__368_.png
  12. For the NETBIOS name keep the default (Example: INTDOMAIN ) and click Next
  13. Next page is to define the NTDS, SYSVOL, and LOG file folders. You can keep defaults.
    Click Next
  14. Next page will give the option to review the configuration changes. If everything okay you can
    Click Next to proceedScreenshot__369_.png
  15. Install and wait. After the installation system will restart automatically. Once it comes
    back log in to the server domain (Example: INTDOMAIN\Administrator )
  16. Open a PowerShell console and use Get-ADDomain | fl Name, DomainMode and
    Get-ADForest | fl Name, ForestMode to confirm domain and forest functional
    levelsScreenshot__370_.png

Creating the user in AD:

  1. Server Manager Dashboard → Tools → Active Directory Users and
    ComputersScreenshot__371_.png
  2. Your Domain (Example: INTDOMAIN.LOCAL ) → Users → Right Click → New → UserScreenshot__372_.png
  3. Add First name/Full name and User logon name, assign a password, and Finish
    Screenshot__373_.png
  4. Go to Properties of the user and assign the rest of the data (email, last name, etc.)

Configuration at Liferay Side:

Setting user authentication with screen name: Control Panel → Configuration → Instance Settings → Authentication → General → How do users authenticate? set By Screen Name

  1. Go to Configuration → Instance Settings → Authentication → LDAP and
    add a new LDAP Server, assign a name (e.g.: WINSERVER)
  2. Select the Microsoft Active Directory Server in the default value
  3. Now provide the asked information as follows:
  • Base Provider URL :  ldap://windows server machine IP:389 (example:
    ldap://10.0.2.7:389) 
  • Base DN : indicate your domain data (example:
    DC=INTDOMAIN,DC=LOCAL)
  • Principal / Credentials : created Admin user Login Credentials (example: INTDOMAIN\Administrator / password)
  • Authentication Search Filter :
    (&(objectCategory=person)(sAMAccountName=@screen_name@))
  • Import Search Filter :
    (&(objectCategory=Person)(sAMAccountName=*))
  • UUID and Screen Name : sAMAccountName
  • Email Address: mail
  • Password: userPassword
  • First Name: givenName
  • Last Name: sn
  • Full name: cn

Test LDAP Connection and Test LDAP Users to check the connection and
recover the available users. Save and Enable the LDAP at the principal screen

 

Additional Information

  • At the time of AD user login, there might be a case you can get an authentication error which can be solved by unchecking "User must change password at next logon" at the time of user creation.

Password_MSAD.png

Did this article resolve your issue ?

Legacy Knowledge Base