Mike,
I have used ldifde a gazillion times and never had a problem - unless the
syntax was incorrect!
Let's take a look at an example. Say that you have an OU structure of the
following:
Departments
Accounting
Finance
Sales
Marketing
Customer Service
IT
So, the DN of any user would look something like the following:
DN: CN=Cary Shultz,OU=IT,OU=Departments,DC=yourdomain,DC=local
DN: CN=Mike Garrett,OU=Sales,OU=Departments,DC=yourdomain,DC=local
DN: CN=Halle Berry,OU=Finance,OU=Departments,DC=yourdomain,DC=local
DN: CN=Salma Hayek,OU=Accounting,OU=Departments,DC=yourdomain,DC=local
DN: CN=Angelina Jolie,OU=Marketing,OU=Departments,DC=yourdomain,DC=local
If you are creating a user account in a domain by importing an .ldf file
then you need certain attributes with values to be included for every entry
in that particular .ldf file.
Here is an example of an .ldf file that would work:
DN: CN=Cary Shultz,OU=IT,OU=Departments,DC=yourdomain,DC=local
changeType: add
objectClass: user
userAccountControl: 512
sAMAccountName: cshultz
displayName: Cary Shultz
cn: Cary Shultz
givenName: Cary
sn: Shultz
company: NKD Solutions, Inc.
streetAddress: 12345 Main Street
l: Roanoke
st: VA
postalCode: 24014
c: US
co: United States
countryCode: 840
department: IT
physicalDeliveryOfficeName: Roanoke
telephoneNumber: 540.555.1212
For this to work, you need to make sure that the OU structure is already in
place.
What error messages are you getting when you try ldifde? From where are you
getting the .ldf file? Have you manually created it?
ldifde is going to put the user accounts where it is told to put them,
assuming that the structure already exists. By default, WIN2000 wants to
create user account objects in the USERS container. The above entry would
look like this if I were simply creating the user account object in the
default location:
DN: CN=Cary Shultz,CN=Users,DC=yourdomain,DC=local
changeType: add
objectClass: user
userAccountControl: 512
sAMAccountName: cshultz
displayName: Cary Shultz
cn: Cary Shultz
givenName: Cary
sn: Shultz
company: NKD Solutions, Inc.
streetAddress: 12345 Main Street
l: Roanoke
st: VA
postalCode: 24014
c: US
co: United States
countryCode: 840
department: IT
physicalDeliveryOfficeName: Roanoke
telephoneNumber: 540.555.1212
Notice that the only difference is in the first line....
Can you post an example of a user account object that was successfully
created and one that was failed?
HTH,
Cary
mike g said:
The problem is not that I can't import the names that I can do, the
problem is that the names are imported only into user/domain user only. The
OU that they are suppose to go into they are not imported into that OU
consistently.