From 5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 10 Dec 2009 13:57:45 -0500 Subject: Add rebuild task to memberof plugin This task allows us to rebuild memberuid and memberof attributes throughout the database. This way we can upgrade from version 0.4 databases that didn't generate and store memberuid. The task can be invoked by adding a speaicl named entry to the ldb file. The entry dn to use is: @MEMBEROF-REBUILD, the entry has no attributes and any attribute is ignored at present. The entry will not be stored in the database but will just trigger the task to execute a rebuild of the memberof and memberuid attributes --- server/util/dlinklist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/util') diff --git a/server/util/dlinklist.h b/server/util/dlinklist.h index 0142a1318..be5ff914b 100644 --- a/server/util/dlinklist.h +++ b/server/util/dlinklist.h @@ -88,10 +88,10 @@ do { \ } while (0) /* demote an element to the end of the list, needs a tmp pointer */ -#define DLIST_DEMOTE(list, p, tmp) \ +#define DLIST_DEMOTE(list, p, type) \ do { \ DLIST_REMOVE(list, p); \ - DLIST_ADD_END(list, p, tmp); \ + DLIST_ADD_END(list, p, type); \ } while (0) /* concatenate two lists - putting all elements of the 2nd list at the -- cgit