How to Add uniquemembers to an OID Group when Some of the Members already Exist in the Group (Doc ID 1424437.1)

Last updated on SEPTEMBER 14, 2016

Applies to:

Oracle Internet Directory - Version 9.0.4 to 11.1.1 [Release 10gR1 to 11g]
Information in this document applies to any platform.

Goal

Using ldapmodify and an ldif file how to add uniquemembers to oid group, but some of the members in the ldif file already exist in the group. The command should proceed in spite of errors regarding the existing members and should add the new members to the group.

The ldif file is as follows:
dn: cn=testgroup,cn=groups,dc=oracle,dc=com
changetype: modify
add: uniquemember
uniquemember: cn=test01,cn=users,dc=oracle,dc=com
uniquemember: cn=test02,cn=users,dc=oracle,dc=com
uniquemember: cn=test03,cn=users,dc=oracle,dc=com

For this example, let's assume cn=test02,cn=users,dc=oracle,dc=com is already a member of this group.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms