diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-12-10 13:57:45 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-10 17:20:26 -0500 |
commit | efb45895084f706cb8a647f5ed32d074caeffcde (patch) | |
tree | 8c1aa21bff6422c01e68ab6a3cef3df294ed36d5 /server/util | |
parent | 307491c0bcb33c3b1f6004f81be5abe3f5ff5814 (diff) | |
download | sssd-efb45895084f706cb8a647f5ed32d074caeffcde.tar.gz sssd-efb45895084f706cb8a647f5ed32d074caeffcde.tar.bz2 sssd-efb45895084f706cb8a647f5ed32d074caeffcde.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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/util/dlinklist.h b/server/util/dlinklist.h index 0142a131..be5ff914 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 |