Creating the Custom LDF File to suit for AD LDS Setup
- Open Command Prompt and
then Go to C:\Windows\ADAM.
- Execute ADSchemaAnalyzer.exe
that displays a new window AD DS / LDS Schema Analyzer.
- In Schema Analyzer window,
go to File Menu and then select Load Target Schema.

- In Load Target Schemadialog
box, provide the following details:
- Server[:port]: [Give IP address of Active Directory Server]:[Active Directory port]
- Username: [Username to connect to Active Directory]
- Password: [Password of above username of Active Directory]
- Domain: [Domain
of Active Directory which contains above user]Note:
If you do not provide port number after server IP/DNS Name, it takes default LDAP port that is 389.
- Click Ok.
- AD DS/LDS Schema
Analyzer screen shows the following folder structure. Once it
is connected to Active Directory Server.
- Go to File Menu
and then select Load base schema.

- The Load base schema dialog
box appears to enter the following details:
- Server[:Port]: [Give IP address of AD LDS]:[AD LDS port]
- Username: [Administrator Username of the local server]
- Password: [Password of Administrator]
- Domain: [Domain
of Active Directory which contains above user]
- Click Ok.
- Go to Schema Menu
and then select Mark all non-present elements as included.

- Click Ok.
- Go to File Menu
and then select Create LDIF file.

- In the File Dialog box provide the path of LDIF file to store.
- By default, it shows C:\Windows\ADAM Path.
- Enter name of the file and click Save.
- Open Command Prompt and then Go to C:\Windows\System32.
- Execute the following
3 commands as mentioned below:
- ldifde -i -u
-f [Path of LDIF File which is created by using Schema Analyzer]
-s [IP address of AD LDS]:[Port of AD LDS] -b [Administrator Username
of the local server ] [Domain of Active Directory which contains
above user] [Password of Administrator] -j . -c "cn=Configuration,dc=X"
#configurationNamingContext
For example,
ldifde -i -u -f c:\windows\adam\ADLDSSyncProxy3_129.ldf -s 192.168.26.129:50000 -b administrator pmsnmdomain XXXXXXXXXXXXXX -j . -c "cn=Configuration,dc=X" #configurationNamingContext

- ldifde -i -f
c:\windows\adam\MS-AdamSyncMetadata.ldf -s [IP address of AD LDS]:[Port
of AD LDS] -b [Administrator Username of the local server ] [Domain
of Active Directory which contains above user] [Password of Administrator]
-c CN=Configuration,DC=X #ConfigurationNamingContext
For example,ldifde -i -f c:\windows\adam\MS-AdamSyncMetadata.ldf -s 192.168.26.129:50000 -b administrator pmsnmdomain XXXXXXXXXXXXXX -c CN=Configuration,DC=X #ConfigurationNamingContext

- ldifde -i -f c:\windows\adam\MS-adamschemaw2k8.ldf
-s [IP address of AD LDS]:[Port of AD LDS] -b [Administrator Username
of the local server ] [Domain of Active Directory which contains
above user] [Password of Administrator] -c CN=Configuration,DC=X#ConfigurationNamingContext
For example,ldifde -i -f c:\windows\adam\MS-adamschemaw2k8.ldf -s 192.168.26.129:50000 -b administrator pmsnmdomain XXXXXXXXXXXX -c CN=Configuration,DC=X#ConfigurationNamingContext

- ldifde -i -u
-f [Path of LDIF File which is created by using Schema Analyzer]
-s [IP address of AD LDS]:[Port of AD LDS] -b [Administrator Username
of the local server ] [Domain of Active Directory which contains
above user] [Password of Administrator] -j . -c "cn=Configuration,dc=X"
#configurationNamingContext
↑