summaryrefslogtreecommitdiffstats
path: root/server/util
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-12-10 13:57:45 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-10 17:20:19 -0500
commit5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75 (patch)
treef11b878bdf57f1c9dae3039307ceb00355c7fd3b /server/util
parent8649a7600e01542fe655169d2dccbe6d3d4441d2 (diff)
downloadsssd-5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75.tar.gz
sssd-5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75.tar.xz
sssd-5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75.zip
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
Diffstat (limited to 'server/util')
-rw-r--r--server/util/dlinklist.h4
1 files changed, 2 insertions, 2 deletions
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