Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



LDIFDE Import Command

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-10-2008
Member
 
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

Reply With Quote
  #2  
Old 16-10-2008
Member
 
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.
Reply With Quote
  #3  
Old 16-10-2008
Member
 
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
Reply With Quote
  #4  
Old 16-10-2008
Member
 
Join Date: Jan 2006
Posts: 4,221
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.
Reply With Quote
  #5  
Old 17-10-2008
Member
 
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
Reply With Quote
  #6  
Old 24-10-2008
Member
 
Join Date: Jan 2006
Posts: 2,254
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.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "LDIFDE Import Command"
Thread Thread Starter Forum Replies Last Post
LDIFDE: Create new group with multiple members, ignore nonexistant users Bruno Ferguson Active Directory 1 02-12-2011 06:16 PM
LDIFDE for backup of entire forest/domain NGV BalaKrishna Active Directory 5 15-09-2010 03:52 PM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Support 1 18-05-2007 01:24 AM
Using Ldifde.exe chaos_ali Windows Server Help 7 28-07-2005 04:24 PM


All times are GMT +5.5. The time now is 05:59 PM.