Adding accounts to AD with LDIFDE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Paul Motsuk (motsuk_at_gmail.com)
Date: 10/12/04


Date: 12 Oct 2004 13:27:20 -0700


'lo there

   I'm attempting to add an account to AD in a test domain using
LDIFDE. The domain cosists of a single DC (w/all FSMO roles).

My input file is:
-=-=-=-=-=-=-=-=-=-=-=

dn: CN=Bansal,OU=Users OU,DC=cua,DC=edu
changetype: add
cn: BANSAL
objectClass: user
SamAccountName: BANSAL
sn: Bansal
-
-=-=-=-=-=-=-=-=-=-=-=

I'm using the following command line:

ldifde -i -b <User name> cua.edu <Password> -v -f bansal.ldf -s
portaldc01 -k

The output I'm currently getting is:
-=-=-=-=-=-=-=-=-=-=-=
Connecting to "portaldc01"
Logging in as "<User name>" in domain "cua.edu" using SSPI
Importing directory from file "bansal.ldf"
Loading entries

There is a syntax error in the input file
Failed on token starting with 'B' on line 8
0 entries modified successfully.
An error has occurred in the program
-=-=-=-=-=-=-=-=-=-=-=

I'm at a loss as to the problem. I've also run across constraint
issues (I forgot to save the .ldf file and real output on that one. I
could recreate it later though).

Can anyone lend some expertise?

Thanks,

Paul Motsuk (motsuk@cua.edu or motsuk@gmail.com)
Manager, Enterprise Systems
The Catholic University of America



Relevant Pages

  • Re: ldifde syntax error
    ... There is a syntax error in the input file ... 2.line changetype ... ... >What is the error message and the code you are trying to ...
    (microsoft.public.windows.server.active_directory)
  • Re: Best IDE for Python?
    ... where edlin is the true standard editor. ... C:\> edlin spam ... Syntax error. ... End of input file. ...
    (comp.lang.python)
  • Re: Password via ldifde setzen (KB263991) gelingt nicht
    ... Thomas Krug wrote: ... >> There is a syntax error in the input file ... Danke und Gruß, Helmut ...
    (microsoft.public.de.german.win2000.active_directory)