To enable the memberOf feature in an existing deployment, populate the memberOf data through a dump and reload of all the group entries through the front end. Due to the load this generates, you should perform it during off peak times, or when applications are not accessing Directory.
To enable memberOf in an existing environment
dxsearch h{host} p{port} -b "ou=Users,o=CA,C=AU" "(memberOf=*)" memberOf
Entries that contain memberOf attribute are returned. Remove memberOf from any entries that are returned.
dxsearch -h{host} -p{port} -b "ou=Groups,o=CA,C=AU" "(member=*)" member objectClass > groups.ldif dxsearch -h{host} -p{port} -b "ou=Groups,o=CA,C=AU" "(uniqueMember=*)" uniqueMember objectClass >> groups.ldif
cat groups.ldif | grep "dn: " | awk '{print $2}' | dxdelete -h{host} -p{port}
cat groups.ldif | dxmodify -h{host} -p{port} a
Example: Migration
This example migration shows how you can export group and user containers:
set memberof-group-containers = <c AU><o CA><ou Groups>; set memberof-user-containers = <c AU><o CA><ou Users>;
Copyright © 2009 CA. All rights reserved. | Email CA about this topic |