Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Ldifde error The server side error is: 0x207b The object class attribute must be specified.

Avatar of fertigj
fertigj asked on
Active DirectoryWindows Server 2008
2 Comments1 Solution5314 ViewsLast Modified:
Hello..

I am trying to setup a dev domain and to this end I am exporting users from our production domain via ldifde and trying to import them into the dev domain.

To export a test user -

ldifde -m -f Exportusers.ldf -s proddc -d "dc=domainname,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(cn=testuser))" -l "cn,comment,company,department,description,displayName,distinguishedName,employeeID,employeeNumber,givenName,homeDirectory,homeDrive,info,initials,mail,middleName,name,scriptPath,sn,title,userPrincipalName"

This generates..

dn:  CN=TestUser,CN=Users,DC=domainname,DC=com
changetype: add
cn: TestUser
comment:
 Comment Here
company: SomeCompany Nmae
department: Department Here
description: Department Here
displayName: Test User
distinguishedName: CN=TestUser,CN=Users,DC=domainname,DC=com
employeeID: test
employeeNumber: 12341234
givenName: test
homeDirectory: \\fileserver\testuser
homeDrive: U:
info:
 Something Here
initials: a
mail: testuser@test.com
middleName: a
name: TestUser
scriptPath: logon.vbs
sn: TestUser
title:: IA==
userPrincipalName: testuser@domainname.com

I then change the dn's to dc=testdc,dc=testdomain,dc=com

When I try to run the command
ldifde -i -f Exportusers.ldf -s 127.0.0.1 -j c:\log -v

I get the following results...
Connecting to "127.0.0.1"
Logging in as current user using SSPI
Importing directory from file "update.ldf"
Loading entries
1: CN=testuser,CN=Users,DC=testdc,DC=testdomain,DC=com

Add error on entry starting on line 1: Object Class Violation
The server side error is: 0x207b The object class attribute must be specified.
The extended server error is:
0000207B: UpdErr: DSID-030511CF, problem 6002 (OBJ_CLASS_VIOLATION), data 0

0 entries modified successfully.
An error has occurred in the program


This happens on a windows 2008 r2 domain {2003 functional}   Any thoughts or help would be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of markpalinux
markpalinuxFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers