Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Add members to a group using LDIF file

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-08-2012
Member
 
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

Reply With Quote
  #2  
Old 07-08-2012
Member
 
Join Date: Dec 2007
Posts: 2,240
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:

Quote:
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
.
.
.
Reply With Quote
  #3  
Old 07-08-2012
Member
 
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
Reply With Quote
  #4  
Old 08-08-2012
Member
 
Join Date: Dec 2007
Posts: 1,713
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.
Reply With Quote
  #5  
Old 08-08-2012
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Add members to a group using LDIF file"
Thread Thread Starter Forum Replies Last Post
Listing members of Group with >1500 members Umesh Thakur Windows Server Help 11 03-02-2012 04:29 AM
Display members of a group with more than 1500 members Simon G Windows Server Help 5 25-10-2011 12:35 PM
Using DSQUERY to get the members of a Group in AD sevaanan Active Directory 5 11-11-2009 12:53 PM
Howto add new attribute via LDIF file Manolax Active Directory 1 11-11-2008 05:57 PM
Export Group Members seankil Windows Server Help 4 09-04-2008 09:05 PM


All times are GMT +5.5. The time now is 04:01 AM.