Results 1 to 5 of 5

Thread: Add members to a group using LDIF file

  1. #1
    Join Date
    Aug 2012
    Posts
    3

    Add members to a group using LDIF file

    Hi everyone,

    I am trying to import existing members to a distribution group I already created. Knowing only a few things about LDAP and the LDIF files, I browsed the Internet and found this code:
    version: 1

    dn: cn=test,ou=myusers,DC=domain
    changetype: modify
    add: groupMembership
    groupMembership: cn=group1,ou=mygroups,DC=domain
    -

    dn: cn=group1,ou=mygroups,DC=domain
    changetype: modify
    add: member
    member: cn=test,ou=myusers,DC=domain
    -

    This is what I get from the CLI when I enter:
    C:\myldapfiles>ldifde -i -f test.ldf -k -j C:\myldapfiles
    Connecting to "***"
    Logging in as current user using SSPI
    Importing directory from file "test.ldf"
    Loading entries.
    Add error on entry starting on line 3: No Such Attribute
    The server side error is: 0x57 The parameter is incorrect.
    The extended server error is:
    00000057: LdapErr: DSID-0C090B73, comment: Error in attribute conversion operation, data 0, v1772
    0 entries modified successfully.
    An error has occurred in the program

    I really don't understand what is wrong with this code. I tested it and found it worked when I removed the groupMembership attribute and keep only the second half of the file. Could someone give me some pointers, please ?

    Thanks!
    Coyoth

  2. #2
    Join Date
    Dec 2007
    Posts
    2,297

    Re: Add members to a group using LDIF file

    Can you try to create an LDIF file that conforms to the Lotus Workforce Management schema by below examples:

    dn: uid=user1,ou=users,o=example
    changetype: add
    objectclass: csdpPerson
    cn: myuser
    sn: hislastname
    manager: uid=user2,ou=users,o=example
    employeenumber: 123456

    dn:uid=user3,ou=users,o=example
    changetype: delete

    dn: uid=user2,ou=users,o=example
    changetype: modify
    replace: userpassword
    userpassword: secret

    dn: cn=group1,ou=users,o=example
    changetype: add
    objectclass: groupOfuniqueNames
    uniqueMember: uid=user1,ou=users,o=example
    .
    .
    .

  3. #3
    Join Date
    Aug 2012
    Posts
    3

    Re: Add members to a group using LDIF file

    Thanks! I'll make sure to try!
    Would you know where I can learn more on the lotus workforce management schema? I am not sure the code to add a user to a group is complete in this sample...

    Thanks again!
    Coyoth

  4. #4
    Join Date
    Dec 2007
    Posts
    1,742

    Re: Add members to a group using LDIF file

    You can learn the lotus workforce management schema from this pdf file that is fully documented by the IBM company. It definately has got all the information that you want to know about lotus workforce management. Hope that helps you out.

  5. #5
    Join Date
    Aug 2012
    Posts
    3

    Re: Add members to a group using LDIF file

    Thanks again!
    Hopefully I will troubleshoot my issue from there!

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, 04:29 AM
  2. 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
  3. Using DSQUERY to get the members of a Group in AD
    By sevaanan in forum Active Directory
    Replies: 5
    Last Post: 11-11-2009, 12:53 PM
  4. Howto add new attribute via LDIF file
    By Manolax in forum Active Directory
    Replies: 1
    Last Post: 11-11-2008, 05:57 PM
  5. Export Group Members
    By seankil in forum Windows Server Help
    Replies: 4
    Last Post: 09-04-2008, 09:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •