Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:56:06+00:00 2026-06-07T16:56:06+00:00

I have two domains. One production. One testing. There is no trust between the

  • 0

I have two domains. One production. One testing. There is no trust between the two.

I can import all user objects and group objects successfully using ldifde commands. When I attempt to also include group members in my export/import I can’t seem to successfully import.

Here are the variations I have tried:

Attempt 1:

file format:
dn: CN=Group-name,OU=Groups,OU=Managed,DC=dev,DC=net
changetype: add
member: CN=USER1,OU=Users,OU=Managed,DC=dev,DC=net
member: CN=USER2,OU=Users,OU=Managed,DC=dev,DC=net

ldifde command used:
ldifde -i -k -f groupexp12072012-test.ldf -v

output:
Connecting to "DC"
Logging in as current user using SSPI
Importing directory from file "groupexp12072012-test.ldf"
Loading entries
1: CN=Group-name,OU=Groups,OU=Managed,DC=dev,DC=net

Add error on line 1: Object Class Violation
The server side error is "The object class attribute must be specified."
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.

Attempt 2:
Added in the correct objectClass to my ldifde import file:

file format:
dn: CN=Group-name,OU=Groups,OU=Managed,DC=dev,DC=net
changetype: add
objectClass: top
objectClass: group
member: CN=USER1,OU=Users,OU=Managed,DC=dev,DC=net
member: CN=USER2,OU=Users,OU=Managed,DC=dev,DC=net

ldifde command used:
ldifde -i -k -f groupexp12072012-test.ldf -v

output:
Connecting to "DC"
Logging in as current user using SSPI
Importing directory from file "groupexp12072012-test.ldf"
Loading entries
1: CN=Group-name,OU=Groups,OU=Managed,DC=dev,DC=net
Entry already exists, entry skipped

0 entries modified successfully.

The command has completed successfully

Attempt 3:
Deleted the existing group object and used the same command and format as “Attempt 2”:

Connecting to "DC"
Logging in as current user using SSPI
Importing directory from file "groupexp12072012-test.ldf"
Loading entries
1: CN=Group-name,OU=Groups,OU=Managed,DC=dev,DC=net
Object does not exist, entry skipped

0 entries modified successfully.

So I’m stuck. Apparently ‘ldifde’ can be used to import group members – all my colleagues say it has never worked but I stumble upon MS articles that say otherwise;
http://social.technet.microsoft.com/Forums/nl/winserverDS/thread/089a3f3b-617f-4c66-a3fc-be543d97a612

Then I stumble on “5. LDIFDE doesn’t support changing Group Membership. You can use CSVDE or ADDUSERS.exe or DStools for Windows 2003 Editions.” here:
http://support.microsoft.com/kb/555634

Am I going crazy for no reason – will I ever succeed using ‘ldifde’?

edit: Yes, I was going crazy for no reason. One of my targeted users was actually in a different OU I was specifying for ‘ldifde’. Because of this, ‘ldifde’ would just give up and not add any members to the group.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:56:09+00:00Added an answer on June 7, 2026 at 4:56 pm

    Here is a way to add users to an existing group (ldifde -i -k -f AddGrpMember.ldf -v
    ):

    dn: CN=MonGrpSec,OU=MonOu,DC=dom,DC=fr
    changeType: Modify
    add: member
    member: CN=jblanc,OU=MonOu,DC=dom,DC=fr
    member: CN=Jean Paul Blanc,OU=MonOu,DC=dom,DC=fr
    -
    

    Here is a way to create a new group with members (ldifde -i -k -f NewGrpWithMember.ldf -v
    ):

    dn: CN=NewGrpSec,OU=MonOu,DC=dom,DC=fr
    changeType: Add
    objectClass: top
    objectClass: group
    CN: NewGrpSec
    member: CN=jblanc,OU=MonOu,DC=dom,DC=fr
    member: CN=Jean Paul Blanc,OU=MonOu,DC=dom,DC=fr
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two domains. One is www.nucleation.co.in and another www.nucleation.in How can I redirect
I have two CDN domains, one that delivers content over https and the other
I'm running Django using wsgi. I have two domains and one sub domain pointing
I have two domains. One domain contains the login script. It creates a cookie
I have two different domains I want to use for this website, how can
I have two servers, and one updates with a DNSBL of 100k domains every
I have two domains sitting on the one webserver. I have images and other
I have two domains, one is a .com domain and the other is a
i have two domains setup one called fastcms.com and the other is called fastautos.com
I have two domains which are similar, mysite1.com and mysite2.com I only have one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.