summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb_private.h
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/db/sysdb_private.h
parent8649a7600e01542fe655169d2dccbe6d3d4441d2 (diff)
downloadsssd_unused-5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75.tar.gz
sssd_unused-5a9e92183a0cb18d601d0a56c6e5e45ad59f9a75.tar.xz
sssd_unused-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/db/sysdb_private.h')
-rw-r--r--server/db/sysdb_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/db/sysdb_private.h b/server/db/sysdb_private.h
index 4400665c..270cf360 100644
--- a/server/db/sysdb_private.h
+++ b/server/db/sysdb_private.h
@@ -23,12 +23,13 @@
#ifndef __INT_SYS_DB_H__
#define __INT_SYS_DB_H__
+#define SYSDB_VERSION_0_5 "0.5"
#define SYSDB_VERSION_0_4 "0.4"
#define SYSDB_VERSION_0_3 "0.3"
#define SYSDB_VERSION_0_2 "0.2"
#define SYSDB_VERSION_0_1 "0.1"
-#define SYSDB_VERSION SYSDB_VERSION_0_4
+#define SYSDB_VERSION SYSDB_VERSION_0_5
#define SYSDB_BASE_LDIF \
"dn: @ATTRIBUTES\n" \
@@ -47,6 +48,7 @@
"@IDXATTR: uidNumber\n" \
"@IDXATTR: gidNumber\n" \
"@IDXATTR: lastUpdate\n" \
+ "@IDXATTR: originalDN\n" \
"\n" \
"dn: @MODULES\n" \
"@LIST: asq,memberof\n" \