Export (0) Print
Expand All

Modify AD LDS Configuration

 

Applies to: Exchange Server 2013

Topic Last Modified: 2014-02-22

You can use the ConfigureAdam.ps1 script (located in $env:ExchangeInstallPath\Scripts) to modify the default Active Directory Lightweight Directory Services (AD LDS) configuration on Edge Transport servers before you subscribe the Edge Transport server to your Exchange organization.

ImportantImportant:
The ConfigureAdam.ps1 script invokes the dsdbutil command to change the registry settings for AD LDS. The dsdbutil command is an AD LDS management tool intended for use only by experienced administrators; using ConfigureAdam.ps1 is the recommended way of changing the AD LDS configuration.

The parameters in the following table are available for the ConfigureAdam.ps1 script. You can use one, all, or any combination of these parameters to modify AD LDS.

Parameters available for the ConfigureAdam.ps1 script

Parameter Description

Ldapport

Modifies the port used for LDAP communication. By default, the Edge Transport server uses the nonstandard port 50389.

Sslport

Modifies the port used for secure LDAP communication. By default, the Edge Transport server uses the nonstandard port 50636.

LogPath

Modifies the log file location. By default, the Edge Transport server creates log files in the path %ExchangeInstallPath%Transport Roles\Data\adam

DataPath

Modifies the location of the directory database file. By default, the Edge Transport server stores the directory database in the path %ExchangeInstallPath%Transport Roles\Data\adam

  • Estimated time to complete: five minutes.

  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Edge Transport servers" section in Mail Flow Permissions.

  • If you need to make any modifications to the Edge Transport server's AD LDS configuration, do so before subscribing the Edge Transport server to your Exchange organization. If you modify the AD LDS configuration of a subscribed Edge Transport server, you will then need to resubscribe the Edge Transport server to the Exchange organization.

  • Always use the script to modify the registry settings. Making manual registry changes to the AD LDS configuration might make the AD LDS instance unavailable.

  • If you need to modify the LDAP port or the SSL port used by AD LDS, first verify that the selected port isn't being used by another application. You can use the netstat command to view the ports being used on the Edge Transport server.

  • You can only use the Shell to perform this procedure.

TipTip:
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

This example changes the LDAP port used by AD LDS to 5000. The ampersand (&) is part of the command syntax.

& $env:ExchangeInstallPath\Scripts\ConfigureAdam.ps1 -LdapPort:5000

This example makes the following changes to the AD LDS configuration. The ampersand (&) is part of the command syntax. Note the colon (:) used between each parameter and its value:

  • Changes the LDAP port to 5000

  • Changes the SSL port to 500

  • Changes the log path to D:\Exchange Server\Data\ADLDS

  • Changes the data path to D:\Exchange Server\Data\ADLDS

& $env:ExchangeInstallPath\Scripts\ConfigureAdam.ps1 -LdapPort:5000 -SslPort:5001 -LogPath:"D:\Exchange Server\Data\ADLDS" -DataPath:"D:\Exchange Server\Data\ADLDS"
 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft