AD LDS sync with AD

Ron Hatfield 1 Reputation point
2021-06-11T18:39:44.757+00:00

AD LDS sync error running the following command:
C:\Windows\ADAM> ldifde.exe -i -f .\MS-adamschemaw2k8.LDF -s localhost:389 -k -j . -c "cn=configuration,dc=x" #configurationnamingcontext

error: Invalid Parameter: Requires 'From DN' and 'To DN'

have checked syntax with upper and lower case same error to prep the AD LDS for sync with AD. member server W2016 with AD LDS role installed.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,478 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Daisy Zhou 26,871 Reputation points Microsoft Vendor
    2021-06-14T07:04:30.047+00:00

    Hello @Ron Hatfield ,

    Thank you for posting here.

    Go to an elevated command prompt

    Change directories to c:\windows\adam

    Run the following command ldifde –I –f ms-adamschemaw2k8.ldf –s localhost:389 –k –j . –c “cn=configuration,dc=x” #configurationNamingContext

    105235-lds.png

    Note: DC=X is not a placeholder or way of saying “fill in the DN for your LDS instance.” Enter the command to be exactly as dictated.

    Tip: Please replace MS-adamschemaw2k8.LDF instead of .\MS-adamschemaw2k8.LDF in your command to see if it helps.

    You can try

    ldifde.exe -i -f MS-adamschemaw2k8.LDF -s localhost:389 -k -j . -c "cn=configuration,dc=x" #configurationnamingcontext  
    

    If it does not work above, please try the method in the similar case to see if it helps.

    I managed to successfully run the command by adding the -b option and specifying the admin account and domain explicitly which apparently uses SSPI to authenticate. I was running in the command windows with elevated privileges, and I am logged in as that same user.

    105311-lds.png

    Similar case.
    LDIFDE import problems
    https://social.technet.microsoft.com/Forums/en-US/e8442e98-7384-4651-a6a7-e46168e7f5b7/ldifde-import-problems?forum=winserverDS

    Reference:
    Ldifde
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc731033(v=ws.11)

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Ron Hatfield 1 Reputation point
    2021-06-14T11:54:51.033+00:00

    This is exactly what I tried both commands with .\ and without same result.

    I will attempt the -b option to see if that will work.

    0 comments No comments

  3. Ron Hatfield 1 Reputation point
    2021-06-14T12:09:44.487+00:00

    Same error with the -b switch in the command.


  4. Ron Hatfield 1 Reputation point
    2021-06-15T12:36:42.677+00:00

    PS C:\Windows\ADAM> ldifde -i -f .\ms-adamschemaw2k8.ldf -s localhost:389 -b NS\sldap password -k -j . -c “cn=c
    onfiguration, dc=x” #configurationNamingContext

    0 comments No comments

  5. Daisy Zhou 26,871 Reputation points Microsoft Vendor
    2021-06-16T07:56:29.96+00:00

    Hello @Ron Hatfield ,

    Thank you for your reply.

    We can see the usage of ldifde -b as below:

    106068--bb.png

    You can try ldifde -i -f .\ms-adamschemaw2k8.ldf -s localhost:389 -b username domain.com password -k -j . -c “cn=configuration, dc=x” #configurationNamingContext

    Then check if it helps.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.