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
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
.
.
.
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
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.
Re: Add members to a group using LDIF file
Thanks again!
Hopefully I will troubleshoot my issue from there!