Results 1 to 6 of 6

Thread: LDIFDE Import Command

  1. #1
    Join Date
    Jul 2006
    Posts
    21

    LDIFDE Import Command

    We are on an Active Directory on Windows 2003 server. We normally use the LDIFDE command to import users to Active Directory. We are running the command (LDIFDE -i -f users.ldf -s servername) at the domain controller. Below is the entry in the batch file. There are no spaces between each entry dn: CN=Doe_John,OU=Marketing Dept,OU=Various Users,DC=xxx,DC=xxx,DC=com

    changetype: add
    cn: Matt_Cutts
    objectClass: user
    samAccountName: Doe_John
    userAccountControl: 66048
    givenName: Andrewa

  2. #2
    Join Date
    Jan 2006
    Posts
    605

    Re: LDIFDE Import Command

    You can try to export your current OU to file and compare the entry for line one with your input files.

  3. #3
    Join Date
    Jul 2006
    Posts
    21

    Re: LDIFDE Import Command

    Thanks for the quick reply. It seems to be a good suggestion. I have compared my export and import files. The syntax looks the same. Does the syntax need to be in any order? Have you got any other suggestion? Thanks

  4. #4
    Join Date
    Jan 2006
    Posts
    4,224

    Re: LDIFDE Import Command

    You can try to do 2 things, either place a space after each comma in the dn or else you can try to place double quotes arounf the DN. That will work properly.

  5. #5
    Join Date
    Jul 2006
    Posts
    21

    Re: LDIFDE Import Command

    Thanks for the replies but it is still now working, so can you give me some solutions that might work? Thanks

  6. #6
    Join Date
    Jan 2006
    Posts
    2,259
    You can check out the below microsoft webstie link that has some informatin on LDP has anything to do this?
    http://technet.microsoft.com/en-us/l.../cc738093.aspx

    You can try to just copy and paste the values directly from your LDIF file into the various fields in the Add Child dialog. After that put the DN from LDIF in the DN field and then just add each attributes's name and value into the attribute list by clicking enter after pair of valise if pasted in. Incase you have all the attributes from your LDIF in the attribute list, you can click Run to submit your add operation.

Similar Threads

  1. Replies: 1
    Last Post: 02-12-2011, 06:16 PM
  2. LDIFDE for backup of entire forest/domain
    By NGV BalaKrishna in forum Active Directory
    Replies: 5
    Last Post: 15-09-2010, 03:52 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Replies: 1
    Last Post: 18-05-2007, 01:24 AM
  5. Using Ldifde.exe
    By chaos_ali in forum Windows Server Help
    Replies: 7
    Last Post: 28-07-2005, 04:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •