Hide Forgot
This bug has been copied from bug #700665 and has been proposed to be backported to 6.1 z-stream (EUS).
Tested : - Configure the linked attributes plug-in (attributes themselves don't matter). ldapmodify -x -h localhost -D "cn=directory manager" -w xxxxx -p 389 << EOF dn: cn=Linked Attributes,cn=plugins,cn=config changetype: modify replace: nsslapd-pluginEnabled nsslapd-pluginEnabled: on - Enable the memberOf plug-in. ldapmodify -x -h localhost -D "cn=directory manager" -w xxxxxx -p 389 << EOF dn: cn=MemberOf Plugin,cn=plugins,cn=config changetype: modify replace: nsslapd-pluginEnabled nsslapd-pluginEnabled: on ldapmodify -x -h localhost -D "cn=directory manager" -w xxxxxxxx -p 389 << EOF dn: cn=MemberOf Plugin,cn=plugins,cn=config changetype: modify replace: memberofattr memberofattr: memberOf ldapmodify -x -h localhost -D "cn=directory manager" -w xxxxxx -p 389 << EOF dn: cn=MemberOf Plugin,cn=plugins,cn=config changetype: modify replace: memberofgroupattr memberofgroupattr: uniqueMember service dirsrv restart - Import a sizeable database with many group memberships. 100 group entries with 5000 users should be sufficient if you have some of the groups have many members and have some groups be members of other groups (nested grouping). - Run the fixup-memberof.pl script to fire of a fixup task on the entire database, then immediately run 'service dirsrv stop'. /usr/lib64/dirsrv/slapd-rheltest/fixup-memberof.pl -v -D "cn=Directory Manager" -w xxxxx -b "ou=unix,dc=corp,dc=example,dc=com" No Crash found.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Starting a long running task in the server (using the cn=tasks,cn=config interface), then shutting down the server before the task can complete, caused the server to crash. This update prevents the server from crashing, but does not gracefully terminate the task, which can leave the server database in an inconsistent state. For example, the fixup-memberof.pl script invokes a tasks to fix up the memberOf attribute in group member entries. If the server is shut down before the task can complete, some entries may not have the correct memberOf values. The user should ensure that the task is complete before shutting down the server to avoid inconsistency.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0824.html