Results 1 to 2 of 2

Thread: LDIFDE: Create new group with multiple members, ignore nonexistant users

  1. #1
    Join Date
    Nov 2011
    Posts
    1

    LDIFDE: Create new group with multiple members, ignore nonexistant users

    Hi,

    Does anyone know how to make ldifde ignore invalid attributes within an LDIF file while continuing to properly process the entire entry?

    I would like to import 664 security groups from a testing environment into production, the groups are all new in production while we will not be creating any new users - only adding members to these groups who are already users in the production forest, and are members of this group in test forest (same usernames in both forests).

    So I figured the easiest way would be to use ldifde to create all these groups and assign all of the 'member:<foo>' attributes on group creation.

    Unfortunately there are some users in test who do not exist in production, and even telling ldifde to ignore entries where the user is not found while move to the next changetype: entry, skipping all the other users who should be added to the group. For example:

    DN:CN=AGROUP,OU=Groups,DC=Org
    changetype:add
    objectclass:group
    grouptype:-2147483646
    description: This is a group
    member:CN=Validuser1,OU=Users,DC=Org
    member:CN=Validuser2,OU=Users,DC=Org
    member:CN=Testonlyuser1,OU=Users,DC=Org *Ldifde craps out here and skips the entire entry - the group is not created and validusers 1,2, and 3 will not be added.
    member:CN=Validuser3,OU=Users,DC=Org

    The above works fine if the TestOnlyUser is removed. Unfortunately I have been handed a CSV export of the test OU from the test team and parsed it into an LDIF file that would be functional, if not for all of these users that only exist in test. It is not trivial to manually search for all the users who are in test only as there will be hundreds who exist only in test, as there will also be hundreds of users who exist in both forests.

    Any suggestions greatly appreciated.

    Cheers, Bruno

  2. #2
    Join Date
    May 2011
    Posts
    428

    Re: LDIFDE: Create new group with multiple members, ignore nonexistant users

    I am not sure, I am answering about the exact issue, but I have something to share here. What I assume that you want to create a high amount of test users on the domain or on the local account. This can be done via NET USER command, DSADD USER command, CSVDE command an LDIFDE command. With the help of LDIFDE you can import and export object in AD. The file is in the form of LDIF format. This file can be read via a text editor. You can edit this file which allows you to add or remove existing users. Other than this CSVDE is much more powerful than this.

Similar Threads

  1. Listing members of Group with >1500 members
    By Umesh Thakur in forum Windows Server Help
    Replies: 11
    Last Post: 03-02-2012, 05:29 AM
  2. Replies: 2
    Last Post: 15-11-2011, 02:45 AM
  3. Display members of a group with more than 1500 members
    By Simon G in forum Windows Server Help
    Replies: 5
    Last Post: 25-10-2011, 12:35 PM
  4. Adding Multiple Users to an AD Group at One Time
    By Billie in forum Active Directory
    Replies: 2
    Last Post: 11-08-2009, 05:57 PM
  5. how to create multiple Users at one time
    By Wahib in forum Operating Systems
    Replies: 4
    Last Post: 18-03-2009, 03:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,907,820.59747 seconds with 17 queries